X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=src%2FBuilder4%2FWindowRooView.vala;h=a6ca4056edd553e7474f2c1bd220125a45416766;hb=4de79243591755dbbeab57201d2e5711ee07a26e;hp=dde87afb5fd030cb81b01e4b7139447e41b2710c;hpb=ba6b6e1a3f2cd582ea87a0cd9be430ecaa1e761e;p=app.Builder.js diff --git a/src/Builder4/WindowRooView.vala b/src/Builder4/WindowRooView.vala index dde87afb5..a6ca4056e 100644 --- a/src/Builder4/WindowRooView.vala +++ b/src/Builder4/WindowRooView.vala @@ -1207,11 +1207,9 @@ public class Xcls_WindowRooView : Object // get the cursor and scroll position.... var buf = this.el.get_buffer(); - - Gtk.TextIter cpos; - buf.get_iter_at_offset(out cpos, buf.cursor_position); - + var cpos = buf.cursor_position; + var vadj = this.el.get_vadjustment(); var buf = this.el.get_buffer(); @@ -1245,6 +1243,8 @@ public class Xcls_WindowRooView : Object sbuf.get_bounds (out start, out end); sbuf.remove_source_marks (start, end, null); // remove all marks.. + buf. +