Mercurial > vim
diff src/testdir/test_arglist.vim @ 11935:976b480ced9a v8.0.0847
patch 8.0.0847: :argadd without argument can't handle space in file name
commit https://github.com/vim/vim/commit/398ee7326b78b892a5c8380dfe3f2521a64b4fa7
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Aug 3 14:29:14 2017 +0200
patch 8.0.0847: :argadd without argument can't handle space in file name
Problem: :argadd without argument can't handle space in file name. (Harm te
Hennepe)
Solution: Escape the space. (Yasuhiro Matsumoto, closes #1917)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 03 Aug 2017 14:30:04 +0200 |
parents | c66d6dc92f53 |
children | 03a6aeea2096 |
line wrap: on
line diff
--- a/src/testdir/test_arglist.vim +++ b/src/testdir/test_arglist.vim @@ -65,13 +65,19 @@ func Test_argadd() %argd edit d arga - call assert_equal(len(argv()), 1) - call assert_equal(get(argv(), 0, ''), 'd') + call assert_equal(1, len(argv())) + call assert_equal('d', get(argv(), 0, '')) + + %argd + edit some\ file + arga + call assert_equal(1, len(argv())) + call assert_equal('some file', get(argv(), 0, '')) %argd new arga - call assert_equal(len(argv()), 0) + call assert_equal(0, len(argv())) endfunc func Init_abc()