commit | 2ac372ccee1af6f9fa105bf2648d5e4efa554236 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Dec 28 19:06:47 2018 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Dec 28 19:06:47 2018 +0100 |
tree | 944b1dde1b0a884054c13cb9951b51d1ca492110 | |
parent | 54948183d210f5117271bb5710752da24054fade [diff] [blame] |
patch 8.1.0651: :args \"foo works like :args without argument Problem: :args \"foo works like :args without argument. Solution: Fix check for empty argument. (closes #3728)
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c index c3f26b6..74d5642 100644 --- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c
@@ -2738,7 +2738,7 @@ alist_new(); } - if (!ends_excmd(*eap->arg)) + if (*eap->arg != NUL) { /* * ":args file ..": define new argument list, handle like ":next"