diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-01-23 23:02:34 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-01-23 23:02:34 +0100 |
commit | 2faa29f896252073b53f387406109e331fbbe5f8 (patch) | |
tree | b6a11b3de6950ea9c623656b0a5765173026f281 /src/testdir/test_arglist.vim | |
parent | bd4593ffb170230504500ddedabad3fad1f31291 (diff) | |
download | vim-git-2faa29f896252073b53f387406109e331fbbe5f8.tar.gz |
patch 7.4.1161v7.4.1161
Problem: ":argadd" without argument is supposed to add the current buffer
name to the arglist.
Solution: Make it work as documented. (Coot, closes #577)
Diffstat (limited to 'src/testdir/test_arglist.vim')
-rw-r--r-- | src/testdir/test_arglist.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/testdir/test_arglist.vim b/src/testdir/test_arglist.vim index 281ac7ad4..424434427 100644 --- a/src/testdir/test_arglist.vim +++ b/src/testdir/test_arglist.vim @@ -57,6 +57,17 @@ func Test_argadd() +2argadd y call Assert_argc(['a', 'b', 'c', 'x', 'y']) call assert_equal(1, argidx()) + + %argd + edit d + arga + call assert_equal(len(argv()), 1) + call assert_equal(get(argv(), 0, ''), 'd') + + %argd + new + arga + call assert_equal(len(argv()), 0) endfunc func Init_abc() |