Mercurial > vim
comparison src/testdir/test_arglist.vim @ 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 | 1946487c74ba |
children | 424f2596f582 |
comparison
equal
deleted
inserted
replaced
15285:f6fd8f8a6583 | 15286:d2a162896a2a |
---|---|
212 redir => result | 212 redir => result |
213 args | 213 args |
214 redir END | 214 redir END |
215 call assert_match(aarg . '\n\[' . barg . ']\n' . carg . '\n' . darg, trim(result)) | 215 call assert_match(aarg . '\n\[' . barg . ']\n' . carg . '\n' . darg, trim(result)) |
216 | 216 |
217 %argdelete | |
218 endfunc | |
219 | |
220 func Test_args_with_quote() | |
221 args \"foobar | |
222 call assert_equal('"foobar', argv(0)) | |
217 %argdelete | 223 %argdelete |
218 endfunc | 224 endfunc |
219 | 225 |
220 " Test for 0argadd and 0argedit | 226 " Test for 0argadd and 0argedit |
221 " Ported from the test_argument_0count.in test script | 227 " Ported from the test_argument_0count.in test script |