aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy
diff options
context:
space:
mode:
authorJurica Bradaric <jbradaric@gmail.com>2016-05-14 15:51:44 +0200
committerJurica Bradaric <jbradaric@gmail.com>2016-05-14 15:57:50 +0200
commit055c9e1be6d73fa4a4f84299dbdbcaf8e2db140a (patch)
tree348886503a9e7cdb2411d3a30ea0788b39ef47d3 /test/functional/legacy
parent02fb6ee45843ac0b759f5bb15bbb3f3f418f0e74 (diff)
downloadrneovim-055c9e1be6d73fa4a4f84299dbdbcaf8e2db140a.tar.gz
rneovim-055c9e1be6d73fa4a4f84299dbdbcaf8e2db140a.tar.bz2
rneovim-055c9e1be6d73fa4a4f84299dbdbcaf8e2db140a.zip
vim-patch:7.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 vim/vim#577) https://github.com/vim/vim/commit/2faa29f896252073b53f387406109e331fbbe5f8
Diffstat (limited to 'test/functional/legacy')
-rw-r--r--test/functional/legacy/arglist_spec.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/functional/legacy/arglist_spec.lua b/test/functional/legacy/arglist_spec.lua
index 60485e8902..d2e3e511d2 100644
--- a/test/functional/legacy/arglist_spec.lua
+++ b/test/functional/legacy/arglist_spec.lua
@@ -84,6 +84,17 @@ describe('argument list commands', function()
execute('+2argadd y')
assert_argc({'a', 'b', 'c', 'x', 'y'})
eq(1, eval('argidx()'))
+
+ execute('%argd')
+ execute('edit d')
+ execute('arga')
+ eq(1, eval('len(argv())'))
+ eq('d', eval('get(argv(), 0, "")'))
+
+ execute('%argd')
+ execute('new')
+ execute('arga')
+ eq(0, eval('len(argv())'))
end)
it('test for [count]argument and [count]argdelete commands', function()