diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-01-03 00:59:58 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-01-03 01:04:09 -0500 |
commit | 8e408c95fe2a79f8dff6672e4ada77c972457a6a (patch) | |
tree | 47320a170c1b24127f3a9889a648954bec409443 /src/nvim/ex_cmds2.c | |
parent | 0afb5fa70aa6b5bc1b007aca5309a5bafd63d868 (diff) | |
download | rneovim-8e408c95fe2a79f8dff6672e4ada77c972457a6a.tar.gz rneovim-8e408c95fe2a79f8dff6672e4ada77c972457a6a.tar.bz2 rneovim-8e408c95fe2a79f8dff6672e4ada77c972457a6a.zip |
vim-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 vim/vim#3728)
https://github.com/vim/vim/commit/2ac372ccee1af6f9fa105bf2648d5e4efa554236
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r-- | src/nvim/ex_cmds2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index 6b0d8801fd..484c911a8b 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -1772,7 +1772,7 @@ void ex_args(exarg_T *eap) } } - if (!ends_excmd(*eap->arg)) { + if (*eap->arg != NUL) { // ":args file ..": define new argument list, handle like ":next" // Also for ":argslocal file .." and ":argsglobal file ..". ex_next(eap); |