summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_arglist.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-08-03 14:29:14 +0200
committerBram Moolenaar <Bram@vim.org>2017-08-03 14:29:14 +0200
commit398ee7326b78b892a5c8380dfe3f2521a64b4fa7 (patch)
tree8384cc670e56f2178474c5062b85d0c97b1cc87b /src/testdir/test_arglist.vim
parent7c9aec4ac86ccc455c0859d9393253141e3f77b6 (diff)
patch 8.0.0847: :argadd without argument can't handle space in file namev8.0.0847
Problem: :argadd without argument can't handle space in file name. (Harm te Hennepe) Solution: Escape the space. (Yasuhiro Matsumoto, closes #1917)
Diffstat (limited to 'src/testdir/test_arglist.vim')
-rw-r--r--src/testdir/test_arglist.vim12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/testdir/test_arglist.vim b/src/testdir/test_arglist.vim
index f75bad1c09..2a2425a93f 100644
--- 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()