From: Alan Knowles Date: Tue, 19 Mar 2024 14:39:37 +0000 (+0800) Subject: src/Builder4/Editor.bjs X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=c955b8819b16735e0026b002a745c6ad888c626f;p=roobuilder src/Builder4/Editor.bjs src/Builder4/Editor.vala --- diff --git a/src/Builder4/Editor.bjs b/src/Builder4/Editor.bjs index f5a672fb4..78e8d1dbd 100644 --- a/src/Builder4/Editor.bjs +++ b/src/Builder4/Editor.bjs @@ -1281,6 +1281,7 @@ "\tif (line == this.last_selected_line) {", "\t\treturn;", "\t}", + "\tGLib.debug(\"select line %d\", line);", "\tthis.last_selected_line = line;", "\t", "\t", @@ -1288,6 +1289,9 @@ "\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;", diff --git a/src/Builder4/Editor.vala b/src/Builder4/Editor.vala index 4ff6502a8..073b7190e 100644 --- a/src/Builder4/Editor.vala +++ b/src/Builder4/Editor.vala @@ -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;