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:
parent
54948183d2
commit
2ac372ccee
@ -2738,7 +2738,7 @@ ex_args(exarg_T *eap)
|
|||||||
alist_new();
|
alist_new();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ends_excmd(*eap->arg))
|
if (*eap->arg != NUL)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* ":args file ..": define new argument list, handle like ":next"
|
* ":args file ..": define new argument list, handle like ":next"
|
||||||
|
@ -217,6 +217,12 @@ func Test_list_arguments()
|
|||||||
%argdelete
|
%argdelete
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
func Test_args_with_quote()
|
||||||
|
args \"foobar
|
||||||
|
call assert_equal('"foobar', argv(0))
|
||||||
|
%argdelete
|
||||||
|
endfunc
|
||||||
|
|
||||||
" Test for 0argadd and 0argedit
|
" Test for 0argadd and 0argedit
|
||||||
" Ported from the test_argument_0count.in test script
|
" Ported from the test_argument_0count.in test script
|
||||||
func Test_zero_argadd()
|
func Test_zero_argadd()
|
||||||
|
@ -799,6 +799,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
651,
|
||||||
/**/
|
/**/
|
||||||
650,
|
650,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user