From a88da001e94343dc2115938e905c1e96fdcc53c7 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Fri, 2 Dec 2016 21:13:26 -0500 Subject: [PATCH] search shortcut should select context when selection is empty --- xedit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xedit.c b/xedit.c index 048051e..62baf1a 100644 --- 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); } -- 2.54.0