1
0
forked from aniani/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 #3728)
This commit is contained in:
Bram Moolenaar 2018-12-28 19:06:47 +01:00
parent 54948183d2
commit 2ac372ccee
3 changed files with 9 additions and 1 deletions

View File

@ -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"

View File

@ -217,6 +217,12 @@ func Test_list_arguments()
%argdelete
endfunc
func Test_args_with_quote()
args \"foobar
call assert_equal('"foobar', argv(0))
%argdelete
endfunc
" Test for 0argadd and 0argedit
" Ported from the test_argument_0count.in test script
func Test_zero_argadd()

View File

@ -799,6 +799,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
651,
/**/
650,
/**/