avoid highlighted area getting "stuck" after edit;
authorwenzelm
Mon, 02 Nov 2015 10:38:42 +0100
changeset 61539 bf4969660913
parent 61538 f6bd97a587b7
child 61540 a29295dac1ca
avoid highlighted area getting "stuck" after edit;
src/Tools/jEdit/src/document_model.scala
--- a/src/Tools/jEdit/src/document_model.scala	Mon Nov 02 10:20:27 2015 +0100
+++ b/src/Tools/jEdit/src/document_model.scala	Mon Nov 02 10:38:42 2015 +0100
@@ -255,6 +255,9 @@
       reset_blob()
       reset_bibtex()
 
+      for (doc_view <- PIDE.document_views(buffer))
+        doc_view.rich_text_area.active_reset()
+
       if (clear) {
         pending_clear = true
         pending.clear