summaryrefslogtreecommitdiff
path: root/src/ex_cmds.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-03-19 14:37:30 +0100
committerBram Moolenaar <Bram@vim.org>2020-03-19 14:37:30 +0100
commit2d10cd478047df8ba144d4b0fcc46480993af57f (patch)
tree516b015ce0b2d408d32a8ec4fe99ed38c44684e5 /src/ex_cmds.h
parente32848780cc07c368ba2e088cdefdbb8c3b827c2 (diff)
downloadvim-git-2d10cd478047df8ba144d4b0fcc46480993af57f.tar.gz
patch 8.2.0407: no early check if :find and :sfind have an argumentv8.2.0407
Problem: No early check if :find and :sfind have an argument. Solution: Add EX_NEEDARG.
Diffstat (limited to 'src/ex_cmds.h')
-rw-r--r--src/ex_cmds.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ex_cmds.h b/src/ex_cmds.h
index f09fb3bff..2e35c8d5f 100644
--- a/src/ex_cmds.h
+++ b/src/ex_cmds.h
@@ -584,7 +584,7 @@ EXCMD(CMD_filter, "filter", ex_wrongmodifier,
EX_BANG|EX_NEEDARG|EX_EXTRA|EX_NOTRLCOM,
ADDR_NONE),
EXCMD(CMD_find, "find", ex_find,
- EX_RANGE|EX_BANG|EX_FILE1|EX_CMDARG|EX_ARGOPT|EX_TRLBAR,
+ EX_RANGE|EX_BANG|EX_FILE1|EX_CMDARG|EX_ARGOPT|EX_TRLBAR|EX_NEEDARG,
ADDR_OTHER),
EXCMD(CMD_finally, "finally", ex_finally,
EX_TRLBAR|EX_SBOXOK|EX_CMDWIN,
@@ -1334,7 +1334,7 @@ EXCMD(CMD_setlocal, "setlocal", ex_set,
EX_BANG|EX_TRLBAR|EX_EXTRA|EX_CMDWIN|EX_SBOXOK,
ADDR_NONE),
EXCMD(CMD_sfind, "sfind", ex_splitview,
- EX_BANG|EX_FILE1|EX_RANGE|EX_CMDARG|EX_ARGOPT|EX_TRLBAR,
+ EX_BANG|EX_FILE1|EX_RANGE|EX_CMDARG|EX_ARGOPT|EX_TRLBAR|EX_NEEDARG,
ADDR_OTHER),
EXCMD(CMD_sfirst, "sfirst", ex_rewind,
EX_EXTRA|EX_BANG|EX_CMDARG|EX_ARGOPT|EX_TRLBAR,