proper purge of auxiliary bibtex theory;
authorwenzelm
Mon, 01 Jan 2018 16:36:52 +0100
changeset 67310 506acf60d6b1
parent 67309 0e322d7325c3
child 67311 3869b2400e22
proper purge of auxiliary bibtex theory;
src/Tools/jEdit/src/document_model.scala
--- 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))