src/Builder4/Editor.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 19 Mar 2024 14:25:57 +0000 (22:25 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 19 Mar 2024 14:25:57 +0000 (22:25 +0800)
src/Builder4/Editor.vala

src/Builder4/Editor.bjs
src/Builder4/Editor.vala

index ce330f2..f8fc295 100644 (file)
                "    return ;",
                "}",
                ""
+              ],
+              "cursor_moved" : [
+               "( ) => {",
+               "",
+               "",
+               "}",
+               ""
               ]
              },
              "| bool OLDhighlightErrorsJson" : [
index 05cc4d5..9e5c49b 100644 (file)
@@ -926,6 +926,10 @@ public class Editor : Object
                        buf.create_tag ("DEPR", "weight", Pango.Weight.BOLD, "background", "#EEA9FF");
 
                        //listeners
+                       this.el.cursor_moved.connect( ( ) => {
+                       
+                       
+                       });
                        this.el.changed.connect( () => {
                            // check syntax??
                            // ??needed..??