aboutsummaryrefslogtreecommitdiff
path: root/ide/session.ml
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2020-04-27 18:20:29 +0200
committerPierre-Marie Pédrot2020-04-27 18:20:29 +0200
commitba9590dc7100236a5e515cbf029cb721b008f3f1 (patch)
tree971e89827eda22237f610b14a01b05e9beb1d328 /ide/session.ml
parentc68d05b0d961581328da477d2bbb05532b65f46e (diff)
parent99dc43029b743412be3ad8b597a38bdd135e2e9c (diff)
Merge PR #12160: CoqIDE: Avoid invalidation of an iterator in insert callback
Reviewed-by: ppedrot
Diffstat (limited to 'ide/session.ml')
-rw-r--r--ide/session.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/ide/session.ml b/ide/session.ml
index b16af9c317..09391b7f50 100644
--- a/ide/session.ml
+++ b/ide/session.ml
@@ -151,7 +151,7 @@ let set_buffer_handlers
else if it#has_tag Tags.Script.processed then Some old
else if it#has_tag Tags.Script.error_bg then aux it it#backward_char
else None in
- aux it it in
+ aux it it#copy in
let insert_cb it s = if String.length s = 0 then () else begin
Minilib.log ("insert_cb " ^ string_of_int it#offset);
let text_mark = add_mark it in