Merge pull request #9447 from janlazo/vim-8.1.0651

vim-patch:8.1.{651,653}
This commit is contained in:
James McCoy 2019-01-03 07:01:19 -05:00 committed by GitHub
commit 103e021912
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 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);

View File

@ -170,6 +170,15 @@ func Test_argument()
call assert_fails('argument', 'E163:')
endfunc
func Test_args_with_quote()
" Only on Unix can a file name include a double quote.
if has('unix')
args \"foobar
call assert_equal('"foobar', argv(0))
%argdelete
endif
endfunc
" Test for 0argadd and 0argedit
" Ported from the test_argument_0count.in test script
func Test_zero_argadd()