--- a/src/Tools/jEdit/src/document_model.scala Mon Jan 01 16:06:37 2018 +0100
+++ b/src/Tools/jEdit/src/document_model.scala Mon Jan 01 16:36:52 2018 +0100
@@ -449,8 +449,9 @@
}
def purge_edits(doc_blobs: Document.Blobs): Option[List[Document.Edit_Text]] =
- if (node_required || !Document.Node.is_no_perspective_text(last_perspective) ||
- pending_edits.nonEmpty) None
+ if (pending_edits.nonEmpty ||
+ !is_bibtex_theory &&
+ (node_required || !Document.Node.is_no_perspective_text(last_perspective))) None
else {
val text_edits = List(Text.Edit.remove(0, content.text))
Some(node_edits(Document.Node.no_header, text_edits, Document.Node.no_perspective_text))