diff options
author | Daniel Carl <danielcarl@gmx.de> | 2014-06-03 12:29:39 +0200 |
---|---|---|
committer | Daniel Carl <danielcarl@gmx.de> | 2014-06-03 12:29:39 +0200 |
commit | 43439ab18d096603e076d64b00ae0b4f0c660e05 (patch) | |
tree | 6eca0e417335ce258707f4ded35b123fc7444ce5 /src/command.c | |
parent | 3bd6f28bdc9fa5471bf3a33c5dbc3fc8583c348b (diff) |
Fixed not working * and # commands.
If a search phrase was marked and * or # was used, the right matches where
highlighted but 'n' or 'N' did not jump to the next match.
Diffstat (limited to 'src/command.c')
-rw-r--r-- | src/command.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/command.c b/src/command.c index d4d3502..5c85794 100644 --- a/src/command.c +++ b/src/command.c @@ -49,6 +49,8 @@ gboolean command_search(const Arg *arg) /* set dearch dir only when the searching is started */ dir = arg->i > 0 ? 1 : -1; query = arg->s; + /* add new search query to history and search register */ + vb_register_add('/', query); } else { /* no search phrase given - continue a previous search */ query = vb_register_get('/'); |