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

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

index 63bc536..c3a02cf 100644 (file)
           "\tvar new_row = -1;",
           "\tvar sym = _this.navliststore.symbolAtLine(line);",
           "\tif (sym != null) {",
-          "\t \tnew_row = _this.navigationselmodel.getRowFromSymbol(sym);",
+          "\t \tnew_row = _this.navigationsort.getRowFromSymbol(sym);",
           " \t\tGLib.debug(\"select line %d - row found %d\", line, new_row);",
           " \t} else {",
           " \t\tGLib.debug(\" no symbol found at line %d\", line);",
index 891d502..3ea2307 100644 (file)
@@ -1912,7 +1912,7 @@ public class Editor : Object
                        var new_row = -1;
                        var sym = _this.navliststore.symbolAtLine(line);
                        if (sym != null) {
-                               new_row = _this.navigationselmodel.getRowFromSymbol(sym);
+                               new_row = _this.navigationsort.getRowFromSymbol(sym);
                                GLib.debug("select line %d - row found %d", line, new_row);
                        } else {
                                GLib.debug(" no symbol found at line %d", line);