From: Daniel Carl <danielcarl@gmx.de>
Date: Mon, 25 Mar 2013 20:48:27 +0000 (+0100)
Subject: Renamed command-hist-* command to hist-*.
X-Git-Url: https://git.owens.tech/assets/112-editable-focus.html/assets/112-editable-focus.html/git?a=commitdiff_plain;h=7a8b541ca8713ab575983867668ac1546ab48ef6;p=vimb.git

Renamed command-hist-* command to hist-*.
---

diff --git a/doc/vimb.1.txt b/doc/vimb.1.txt
index 85d1598..3442804 100644
--- a/doc/vimb.1.txt
+++ b/doc/vimb.1.txt
@@ -287,16 +287,14 @@ Zoom \fIN\fP steps in or out of the current page \- effecting all elements.
 .TP
 .B zoomreset
 Reset the zoomlevel to the default value.
-.SS Command-History
-.TP
-.BI [ N "]command-hist-prev, [" N "]command-hist-next"
-Prints the previous or next cammand 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 into inputbox that
-begins with \fI[:/?]\fP. So the history contains real commands and search queries.
-.br
-Note that the history distinguishes between '/query' and '?query' what's not
-what the vim editor does.
+.SS History
+.TP
+.BI [ N "]hist-prev, [" N "]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
+into inputbox that begins with \fI[:/?]\fP. So the history contains real
+commands and search queries.
 .SS Misc
 .TP
 .BI [ N "]search-forward, [" N "]search-backward"
diff --git a/src/command.c b/src/command.c
index 09c5766..7a185aa 100644
--- a/src/command.c
+++ b/src/command.c
@@ -94,8 +94,8 @@ static CommandInfo cmd_list[] = {
     {"zoominfull",          command_zoom,        {COMMAND_ZOOM_IN | COMMAND_ZOOM_FULL}},
     {"zoomoutfull",         command_zoom,        {COMMAND_ZOOM_OUT | COMMAND_ZOOM_FULL}},
     {"zoomreset",           command_zoom,        {COMMAND_ZOOM_RESET}},
-    {"command-hist-next",   command_history,     {VB_SEARCH_FORWARD}},
-    {"command-hist-prev",   command_history,     {VB_SEARCH_BACKWARD}},
+    {"hist-next",           command_history,     {VB_SEARCH_FORWARD}},
+    {"hist-prev",           command_history,     {VB_SEARCH_BACKWARD}},
 };
 
 static void command_write_input(const char* str);
diff --git a/src/config.h b/src/config.h
index 16853dd..2242721 100644
--- a/src/config.h
+++ b/src/config.h
@@ -88,8 +88,8 @@ const struct {
     {"nmap zz=zoomreset"},
     {"cmap <tab>=complete"},
     {"cmap <shift-tab>=complete-back"},
-    {"cmap <ctrl-p>=command-hist-prev"},
-    {"cmap <ctrl-n>=command-hist-next"},
+    {"cmap <ctrl-p>=hist-prev"},
+    {"cmap <ctrl-n>=hist-next"},
     {"hmap <tab>=hint-focus-next"},
     {"hmap <shift-tab>=hint-focus-prev"},
     {"searchengine-add dl=https://duckduckgo.com/lite/?q=%s"},