Mercurial > vim
changeset 15286:d2a162896a2a v8.1.0651
patch 8.1.0651: :args "foo works like :args without argument
commit https://github.com/vim/vim/commit/2ac372ccee1af6f9fa105bf2648d5e4efa554236
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 28 19:06:47 2018 +0100
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 https://github.com/vim/vim/issues/3728)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 28 Dec 2018 19:15:05 +0100 |
parents | f6fd8f8a6583 |
children | 79208fd35054 |
files | src/ex_cmds2.c src/testdir/test_arglist.vim src/version.c |
diffstat | 3 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c @@ -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"
--- a/src/testdir/test_arglist.vim +++ b/src/testdir/test_arglist.vim @@ -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()