Removed count from hist-prev and hist-next command.
authorDaniel Carl <danielcarl@gmx.de>
Tue, 26 Mar 2013 23:58:03 +0000 (00:58 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Tue, 26 Mar 2013 23:58:03 +0000 (00:58 +0100)
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.

doc/vimb.1.txt
src/command.c

index cb5cb7b..797e4ce 100644 (file)
@@ -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
index 32a3f36..5fd1666 100644 (file)
@@ -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;