diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-03-09 15:58:30 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-03-09 15:58:30 +0100 |
commit | 69a92fb5aecdf2f9d5f6947790b18991b22d0e4c (patch) | |
tree | 9f5510a1c9fe6449d7f9a29a1bf9507095ec42b3 /src/testdir | |
parent | 056f700031602a2734b1ddf45f6bc2817e49b996 (diff) | |
download | vim-git-69a92fb5aecdf2f9d5f6947790b18991b22d0e4c.tar.gz |
patch 8.0.0439: ":%argdel" gives an error for an empty arglistv8.0.0439
Problem: Using ":%argdel" while the argument list is already empty gives an
error. (Pavol Juhas)
Solution: Don't give an error. (closes #1546)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_arglist.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testdir/test_arglist.vim b/src/testdir/test_arglist.vim index 0caead848..d18035b3b 100644 --- a/src/testdir/test_arglist.vim +++ b/src/testdir/test_arglist.vim @@ -6,6 +6,10 @@ func Test_argidx() call assert_equal(2, argidx()) %argdelete call assert_equal(0, argidx()) + " doing it again doesn't result in an error + %argdelete + call assert_equal(0, argidx()) + call assert_fails('2argdelete', 'E16:') args a b c call assert_equal(0, argidx()) |