From: Alan Knowles Date: Tue, 19 Mar 2024 15:26:35 +0000 (+0800) Subject: src/Builder4/Editor.bjs X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=8b26c1ae69696b4826f77ac57e43cf6d3e8ca16c;p=roobuilder src/Builder4/Editor.bjs src/Builder4/Editor.vala --- diff --git a/src/Builder4/Editor.bjs b/src/Builder4/Editor.bjs index c3a02cf22..0b1120f11 100644 --- a/src/Builder4/Editor.bjs +++ b/src/Builder4/Editor.bjs @@ -1308,21 +1308,21 @@ "}" ], "| void updateSelectedLine" : [ - "(int line) {", + "(uint line, uint chr) {", "\tif (line == this.last_selected_line) {", "\t\treturn;", "\t}", - "\tGLib.debug(\"select line %d\", line);", + "\tGLib.debug(\"select line %d\", (int)ine);", "\tthis.last_selected_line = line;", "\t", "\t", "\tvar new_row = -1;", - "\tvar sym = _this.navliststore.symbolAtLine(line);", + "\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\", line, new_row);", + " \t\tGLib.debug(\"select line %d - row found %d\", (int)line, new_row);", " \t} else {", - " \t\tGLib.debug(\" no symbol found at line %d\", line);", + " \t\tGLib.debug(\" no symbol found at line %d\", (int)line);", " \t}", " \t", "\tif (this.selected_row != null) { ", diff --git a/src/Builder4/Editor.vala b/src/Builder4/Editor.vala index 3ea230746..2938729fb 100644 --- a/src/Builder4/Editor.vala +++ b/src/Builder4/Editor.vala @@ -1901,21 +1901,21 @@ public class Editor : Object } return rn; } - public void updateSelectedLine (int line) { + public void updateSelectedLine (uint line, uint chr) { if (line == this.last_selected_line) { return; } - GLib.debug("select line %d", line); + GLib.debug("select line %d", (int)ine); this.last_selected_line = line; var new_row = -1; - var sym = _this.navliststore.symbolAtLine(line); + var sym = _this.navliststore.symbolAtLine(line,chr); if (sym != null) { new_row = _this.navigationsort.getRowFromSymbol(sym); - GLib.debug("select line %d - row found %d", line, new_row); + GLib.debug("select line %d - row found %d", (int)line, new_row); } else { - GLib.debug(" no symbol found at line %d", line); + GLib.debug(" no symbol found at line %d", (int)line); } if (this.selected_row != null) {