From: Daniel Carl Date: Fri, 1 Nov 2013 12:15:43 +0000 (+0100) Subject: Fixed missed query for search of selection. X-Git-Url: https://git.owens.tech/assets/favicon.png/assets/favicon.png/git?a=commitdiff_plain;h=4af784724dc81098c123e5131cec17e0fccbb74f;p=vimb.git 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. --- 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;