]> git.mdlowis.com Git - projs/tide.git/commitdiff
Added back in lost jump-to-line functionality
authorMichael D. Lowis <mike.lowis@gentex.com>
Mon, 5 Dec 2016 19:00:24 +0000 (14:00 -0500)
committerMichael D. Lowis <mike.lowis@gentex.com>
Mon, 5 Dec 2016 19:00:24 +0000 (14:00 -0500)
xedit.c

diff --git a/xedit.c b/xedit.c
index 52cc99ffa67977c85c076a5438ccda8da28850e5..fc1a516df6a47fed3c82c2b694b171ece03ae593 100644 (file)
--- a/xedit.c
+++ b/xedit.c
@@ -547,7 +547,13 @@ static void pick_ctag(void) {
 static void goto_ctag(void) {
     char* str = view_getctx(currview());
     if (str) {
-        pick_symbol(str);
+        size_t line = strtoul(str, NULL, 0);
+        if (line) {
+            view_setln(getview(EDIT), line);
+            Focused = EDIT;
+        } else {
+            pick_symbol(str);
+        }
     }
     free(str);
 }