]> git.mdlowis.com Git - projs/tide.git/commitdiff
search shortcut should select context when selection is empty
authorMichael D. Lowis <mike@mdlowis.com>
Sat, 3 Dec 2016 02:13:26 +0000 (21:13 -0500)
committerMichael D. Lowis <mike@mdlowis.com>
Sat, 3 Dec 2016 02:13:26 +0000 (21:13 -0500)
xedit.c

diff --git a/xedit.c b/xedit.c
index 048051e0cda287d5484ca0419f1c93c8e08734b7..62baf1ac6098daf89aa4e0e92ec5ec9cefa57c10 100644 (file)
--- a/xedit.c
+++ b/xedit.c
@@ -484,7 +484,7 @@ static void paste(void) {
 }
 
 static void search(void) {
-    char* str = view_getstr(currview(), NULL);
+    char* str = view_getctx(currview());
     view_findstr(getview(EDIT), str);
     free(str);
 }