projects
/
vimb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9d9647
)
Fixed missed query for search of selection.
author
Daniel Carl
<danielcarl@gmx.de>
Fri, 1 Nov 2013 12:15:43 +0000
(13:15 +0100)
committer
Daniel 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
patch
|
blob
|
history
diff --git
a/src/normal.c
b/src/normal.c
index
b55160b
..
bca27e0
100644
(file)
--- 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;