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

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

index f5a672f..78e8d1d 100644 (file)
           "\tif (line == this.last_selected_line) {",
           "\t\treturn;",
           "\t}",
+          "\tGLib.debug(\"select line %d\", line);",
           "\tthis.last_selected_line = line;",
           "\t",
           "\t",
           "\tvar sym = _this.navliststore.symbolAtLine(line);",
           "\tif (sym != null) {",
           "\t \tnew_row = _this.navigationselmodel.getRowFromSymbol(sym);",
+          " \t\tGLib.debug(\"select line %d - row found %d\", line, new_row);",
+          " \t} else {",
+          " \t\tGLib.debug(\" now sumbol found at line %d\", line);",
           " \t}",
           " \tif (new_row == this.selected_row) {",
           " \t\treturn;",
index 4ff6502..073b719 100644 (file)
@@ -1904,6 +1904,7 @@ public class Editor : Object
                        if (line == this.last_selected_line) {
                                return;
                        }
+                       GLib.debug("select line %d", line);
                        this.last_selected_line = line;
                        
                        
@@ -1911,6 +1912,9 @@ public class Editor : Object
                        var sym = _this.navliststore.symbolAtLine(line);
                        if (sym != null) {
                                new_row = _this.navigationselmodel.getRowFromSymbol(sym);
+                               GLib.debug("select line %d - row found %d", line, new_row);
+                       } else {
+                               GLib.debug(" now sumbol found at line %d", line);
                        }
                        if (new_row == this.selected_row) {
                                return;