summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_arglist.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-01-23 23:02:34 +0100
committerBram Moolenaar <Bram@vim.org>2016-01-23 23:02:34 +0100
commit2faa29f896252073b53f387406109e331fbbe5f8 (patch)
treeb6a11b3de6950ea9c623656b0a5765173026f281 /src/testdir/test_arglist.vim
parentbd4593ffb170230504500ddedabad3fad1f31291 (diff)
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.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/testdir/test_arglist.vim b/src/testdir/test_arglist.vim
index 281ac7ad44..4244344270 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()