From 4af784724dc81098c123e5131cec17e0fccbb74f Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Fri, 1 Nov 2013 13:15:43 +0100 Subject: [PATCH] Fixed missed query for search of selection. If the search was started from the current selected text, the query was not given to the search command. That means the '*' and '#' commands did not work. --- src/normal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/normal.c b/src/normal.c index b55160b..bca27e0 100644 --- a/src/normal.c +++ b/src/normal.c @@ -671,7 +671,7 @@ static VbResult normal_search_selection(const NormalCmdInfo *info) } count = (info->count > 0) ? info->count : 1; - command_search(&((Arg){info->cmd == '*' ? count : -count})); + command_search(&((Arg){info->cmd == '*' ? count : -count, query})); g_free(query); return RESULT_COMPLETE; -- 2.20.1