src/Builder4/Editor.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 19 Mar 2024 15:27:11 +0000 (23:27 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 19 Mar 2024 15:27:11 +0000 (23:27 +0800)
src/Builder4/Editor.vala

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

index 0b1120f..fc76927 100644 (file)
           "\t\treturn;",
           "\t}",
           "\tGLib.debug(\"select line %d\", (int)ine);",
-          "\tthis.last_selected_line = line;",
+          "\tthis.last_selected_line = (int)line;",
           "\t",
           "\t",
           "\tvar new_row = -1;",
-          "\tvar sym = _this.navliststore.symbolAtLine(line,chr);",
+          "\tvar sym = _this.navliststore.symbolAtLine(line, chr);",
           "\tif (sym != null) {",
           "\t \tnew_row = _this.navigationsort.getRowFromSymbol(sym);",
           " \t\tGLib.debug(\"select line %d - row found %d\", (int)line, new_row);",
index 2938729..dd67553 100644 (file)
@@ -1906,11 +1906,11 @@ public class Editor : Object
                                return;
                        }
                        GLib.debug("select line %d", (int)ine);
-                       this.last_selected_line = line;
+                       this.last_selected_line = (int)line;
                        
                        
                        var new_row = -1;
-                       var sym = _this.navliststore.symbolAtLine(line,chr);
+                       var sym = _this.navliststore.symbolAtLine(line, chr);
                        if (sym != null) {
                                new_row = _this.navigationsort.getRowFromSymbol(sym);
                                GLib.debug("select line %d - row found %d", (int)line, new_row);