From 45615cedd10fb5dc3c502815ed4d98b6d4e4488a Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Mon, 17 Aug 2020 18:43:40 -0400 Subject: vim-patch:8.2.1472: ":argdel" does not work like ":.argdel" as documented Problem: ":argdel" does not work like ":.argdel" as documented. (Alexey Demin) Solution: Make ":argdel" work like ":.argdel". (closes vim/vim#6727) Also fix giving the error "0 more files to edit". https://github.com/vim/vim/commit/7b22117c4ecf383b6f35acef041773a83ec28220 --- test/functional/legacy/arglist_spec.lua | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'test/functional/legacy/arglist_spec.lua') diff --git a/test/functional/legacy/arglist_spec.lua b/test/functional/legacy/arglist_spec.lua index 241a19d940..67c5750033 100644 --- a/test/functional/legacy/arglist_spec.lua +++ b/test/functional/legacy/arglist_spec.lua @@ -42,9 +42,7 @@ describe('argument list commands', function() end) it('test that argadd() works', function() - -- Fails with “E474: Invalid argument”. Not sure whether it is how it is - -- supposed to behave. - -- command('%argdelete') + command('%argdelete') command('argadd a b c') eq(0, eval('argidx()')) @@ -176,9 +174,14 @@ describe('argument list commands', function() command('last') command('argdelete %') eq({'b'}, eval('argv()')) - assert_fails('argdelete', 'E471:') + assert_fails('argdelete', 'E610:') assert_fails('1,100argdelete', 'E16:') - command('%argd') + reset_arglist() + command('args a b c d') + command('next') + command('argdel') + eq({'a', 'c', 'd'}, eval('argv()')) + command('%argdel') end) it('test for the :next, :prev, :first, :last, :rewind commands', function() -- cgit