From: Daniel Carl Date: Tue, 26 Mar 2013 23:58:03 +0000 (+0100) Subject: Removed count from hist-prev and hist-next command. X-Git-Url: https://git.owens.tech/wrapped.html/wrapped.html/git?a=commitdiff_plain;h=9a311fef90cea6c6b777075654505a7f04c0136a;p=vimb.git Removed count from hist-prev and hist-next command. There was never a possible way to set the count for the history stepping and the great editor vim has also no count for the history stepping, so there's no need to have it in vimb browser too. --- diff --git a/doc/vimb.1.txt b/doc/vimb.1.txt index cb5cb7b..797e4ce 100644 --- a/doc/vimb.1.txt +++ b/doc/vimb.1.txt @@ -289,7 +289,7 @@ Zoom \fIN\fP steps in or out of the current page \- effecting all elements. Reset the zoomlevel to the default value. .SS History .TP -.BI [ N "]hist-prev, [" N "]hist-next" +.B hist-prev, hist-next" Prints the previous or next cammand or search query from history into inputbox. If there is already text in the input box this will be used to get history items. A command is not a internal command, but every string entered diff --git a/src/command.c b/src/command.c index 32a3f36..5fd1666 100644 --- a/src/command.c +++ b/src/command.c @@ -517,9 +517,8 @@ gboolean command_zoom(const Arg* arg) gboolean command_history(const Arg* arg) { - int step = vb.state.count ? vb.state.count * arg->i : arg->i; const char* input = GET_TEXT(); - char* entry = history_get(input, step); + char* entry = history_get(input, arg->i); if (!entry) { return FALSE;