summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-12-28 19:06:47 +0100
committerBram Moolenaar <Bram@vim.org>2018-12-28 19:06:47 +0100
commit2ac372ccee1af6f9fa105bf2648d5e4efa554236 (patch)
tree944b1dde1b0a884054c13cb9951b51d1ca492110 /src/ex_cmds2.c
parent54948183d210f5117271bb5710752da24054fade (diff)
patch 8.1.0651: :args \"foo works like :args without argumentv8.1.0651
Problem: :args \"foo works like :args without argument. Solution: Fix check for empty argument. (closes #3728)
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r--src/ex_cmds2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index c3f26b64c5..74d56427cd 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -2738,7 +2738,7 @@ ex_args(exarg_T *eap)
alist_new();
}
- if (!ends_excmd(*eap->arg))
+ if (*eap->arg != NUL)
{
/*
* ":args file ..": define new argument list, handle like ":next"