src/Builder4/WindowRooView.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 19 Jan 2024 00:47:13 +0000 (08:47 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 19 Jan 2024 00:47:13 +0000 (08:47 +0800)
src/Builder4/WindowRooView.vala

src/Builder4/WindowRooView.bjs
src/Builder4/WindowRooView.vala

index f43ba99..0101350 100644 (file)
             "    ",
             "    _this.main_window.windowstate.updateErrorMarksAll();",
             "    ",
-            "    // what does this do?",
+            "    // what restore the cursor position?",
+            "    // after reloading the contents.",
             "     GLib.Timeout.add(500, () => {",
             "\t\t_this.buffer.in_cursor_change = true;",
             "        print(\"RESORTING cursor to = %d\\n\", cpos);",
index 062addf..69a4beb 100644 (file)
@@ -1229,7 +1229,8 @@ public class Xcls_WindowRooView : Object
                    
                    _this.main_window.windowstate.updateErrorMarksAll();
                    
-                   // what does this do?
+                   // what restore the cursor position?
+                   // after reloading the contents.
                     GLib.Timeout.add(500, () => {
                                _this.buffer.in_cursor_change = true;
                        print("RESORTING cursor to = %d\n", cpos);