diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-17 19:34:10 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-17 19:34:10 +0200 |
commit | 7b22117c4ecf383b6f35acef041773a83ec28220 (patch) | |
tree | 980afe611e35c20ab256b97453d519d60d283f04 /src/testdir/test_arglist.vim | |
parent | 241572794f7e93d2f8b762de2300e5f7e4f07628 (diff) |
patch 8.2.1472: ":argdel" does not work like ":.argdel" as documentedv8.2.1472
Problem: ":argdel" does not work like ":.argdel" as documented. (Alexey
Demin)
Solution: Make ":argdel" work like ":.argdel". (closes #6727)
Also fix giving the error "0 more files to edit".
Diffstat (limited to 'src/testdir/test_arglist.vim')
-rw-r--r-- | src/testdir/test_arglist.vim | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/testdir/test_arglist.vim b/src/testdir/test_arglist.vim index 820d8b9695..9b23a512e1 100644 --- a/src/testdir/test_arglist.vim +++ b/src/testdir/test_arglist.vim @@ -423,9 +423,15 @@ func Test_argdelete() last argdelete % call assert_equal(['b'], argv()) - call assert_fails('argdelete', 'E471:') + call assert_fails('argdelete', 'E610:') call assert_fails('1,100argdelete', 'E16:') - %argd + + call Reset_arglist() + args a b c d + next + argdel + call Assert_argc(['a', 'c', 'd']) + %argdel endfunc func Test_argdelete_completion() |