back to model.update_perspective with delay (cf. a20631db9c8a);
--- a/src/Tools/jEdit/src/document_model.scala Mon Jul 29 14:37:59 2013 +0200
+++ b/src/Tools/jEdit/src/document_model.scala Mon Jul 29 14:43:21 2013 +0200
@@ -148,7 +148,7 @@
def flush(): Unit = session.update(flushed_edits())
- private val delay_flush =
+ val delay_flush =
Swing_Thread.delay_last(PIDE.options.seconds("editor_input_delay")) { flush() }
def +=(edit: Text.Edit)
@@ -172,7 +172,8 @@
}
def flushed_edits(): List[Document.Edit_Text] = pending_edits.flushed_edits()
- def flush(): Unit = pending_edits.flush()
+
+ def update_perspective(): Unit = pending_edits.delay_flush.invoke()
/* snapshot */
--- a/src/Tools/jEdit/src/document_view.scala Mon Jul 29 14:37:59 2013 +0200
+++ b/src/Tools/jEdit/src/document_view.scala Mon Jul 29 14:43:21 2013 +0200
@@ -100,7 +100,7 @@
start: Array[Int], end: Array[Int], y: Int, line_height: Int)
{
// no robust_body
- model.flush()
+ model.update_perspective()
}
}