summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_arglist.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-12-02 14:55:08 +0100
committerBram Moolenaar <Bram@vim.org>2018-12-02 14:55:08 +0100
commitb513d3079bbe3f59a1f1a3d6931939a76cd7e54a (patch)
tree1683af0ef25f614588ca6ffb4ee9a12151763580 /src/testdir/test_arglist.vim
parentd2ec51f399607d2df6ed1155b0bd303e722d6978 (diff)
patch 8.1.0559: command line completion not sufficiently testedv8.1.0559
Problem: Command line completion not sufficiently tested. Solution: Add more tests. (Dominique Pelle, closes #3622)
Diffstat (limited to 'src/testdir/test_arglist.vim')
-rw-r--r--src/testdir/test_arglist.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/testdir/test_arglist.vim b/src/testdir/test_arglist.vim
index b896c3dec6..cb1117eede 100644
--- a/src/testdir/test_arglist.vim
+++ b/src/testdir/test_arglist.vim
@@ -396,6 +396,18 @@ func Test_argdelete()
%argd
endfunc
+func Test_argdelete_completion()
+ args foo bar
+
+ call feedkeys(":argdelete \<C-A>\<C-B>\"\<CR>", 'tx')
+ call assert_equal('"argdelete bar foo', @:)
+
+ call feedkeys(":argdelete x \<C-A>\<C-B>\"\<CR>", 'tx')
+ call assert_equal('"argdelete x bar foo', @:)
+
+ %argd
+endfunc
+
" Tests for the :next, :prev, :first, :last, :rewind commands
func Test_argpos()
call Reset_arglist()