does absolutely nothing (i.e. at the very end of the execution the cursor
is at the end of the blue area).
| exc -> self#notify; raise exc)
| `Cursor ->
let locked_iter () = buffer#get_iter_at_mark (`NAME "locked") in
- let cursor_iter () = buffer#get_iter_at_mark `INSERT in
- let cmp = (locked_iter ())#offset - (cursor_iter ())#offset in
+ let cursor_iter = buffer#get_iter_at_mark `INSERT in
+ let cmp = (locked_iter ())#offset - cursor_iter#offset in
let forward_until_cursor () = (* go forward until locked > cursor *)
let rec aux oldpos =
self#_advance ();
- if (locked_iter ())#compare (cursor_iter ()) < 0 &&
+ if (locked_iter ())#compare cursor_iter < 0 &&
oldpos#compare (getpos ()) < 0
then
aux (getpos ())