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)
2ac372ccee
This commit is contained in:
Jan Edmund Lazo
2019-01-03 00:59:58 -05:00
parent 0afb5fa70a
commit 8e408c95fe
2 changed files with 7 additions and 1 deletions

View File

@@ -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);