aboutsummaryrefslogtreecommitdiff
path: root/sam.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-01-31 22:09:38 +0100
committerMarc André Tanner <mat@brain-dump.org>2017-02-02 13:55:18 +0100
commitcc698987d53b43ba30fa28427b1ccd8fe2ed5070 (patch)
tree357446791752891d6247ea2d5ed6aa5fc71596c0 /sam.c
parent3b07039fecbab82ecdefbdb2c064a839d506431a (diff)
downloadvis-cc698987d53b43ba30fa28427b1ccd8fe2ed5070.tar.gz
vis-cc698987d53b43ba30fa28427b1ccd8fe2ed5070.tar.xz
vis: support rudimentary help search using :help pattern
The argument needs to be a valid regular expression. It currently clobbers the last used search term and hence allows repeated searches using `n` and `N` respectively.
Diffstat (limited to 'sam.c')
-rw-r--r--sam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sam.c b/sam.c
index aa0580a..21e56b2 100644
--- a/sam.c
+++ b/sam.c
@@ -215,7 +215,7 @@ static const CommandDef cmds[] = {
CMD_FORCE|CMD_ONCE|CMD_ADDRESS_NONE|CMD_DESTRUCTIVE, NULL, cmd_bdelete
}, {
"help", "Show this help",
- CMD_ONCE|CMD_ADDRESS_NONE, NULL, cmd_help
+ CMD_ARGV|CMD_ONCE|CMD_ADDRESS_NONE, NULL, cmd_help
}, {
"map", "Map key binding `:map <mode> <lhs> <rhs>`",
CMD_ARGV|CMD_FORCE|CMD_ONCE|CMD_ADDRESS_NONE, NULL, cmd_map