Fixed missed query for search of selection.
authorDaniel Carl <danielcarl@gmx.de>
Fri, 1 Nov 2013 12:15:43 +0000 (13:15 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Fri, 1 Nov 2013 12:15:43 +0000 (13:15 +0100)
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

index b55160b..bca27e0 100644 (file)
@@ -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;