aboutsummaryrefslogtreecommitdiff
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index e4041cf862..e6218bd15f 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -3924,7 +3924,7 @@ static char_u *getargcmd(char_u **argp)
if (*arg == '+') { /* +[command] */
++arg;
- if (vim_isspace(*arg))
+ if (vim_isspace(*arg) || *arg == '\0')
command = dollar_command;
else {
command = arg;