mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 19:35:37 +00:00
test/arglist_spec: update to Vim 8.0.0721 behavior
This commit is contained in:
@@ -222,20 +222,19 @@ describe('argument list commands', function()
|
|||||||
eq({'a', 'b'}, eval('argv()'))
|
eq({'a', 'b'}, eval('argv()'))
|
||||||
eq('b', eval('expand("%:t")'))
|
eq('b', eval('expand("%:t")'))
|
||||||
command('argedit a')
|
command('argedit a')
|
||||||
eq({'a', 'b'}, eval('argv()'))
|
eq({'a', 'b', 'a'}, eval('argv()'))
|
||||||
eq('a', eval('expand("%:t")'))
|
eq('a', eval('expand("%:t")'))
|
||||||
command('argedit c')
|
command('argedit c')
|
||||||
eq({'a', 'c', 'b'}, eval('argv()'))
|
eq({'a', 'b', 'a', 'c'}, eval('argv()'))
|
||||||
command('0argedit x')
|
command('0argedit x')
|
||||||
eq({'x', 'a', 'c', 'b'}, eval('argv()'))
|
eq({'x', 'a', 'b', 'a', 'c'}, eval('argv()'))
|
||||||
command('enew! | set modified')
|
command('enew! | set modified')
|
||||||
assert_fails('argedit y', 'E37:')
|
assert_fails('argedit y', 'E37:')
|
||||||
command('argedit! y')
|
command('argedit! y')
|
||||||
eq({'x', 'y', 'a', 'c', 'b'}, eval('argv()'))
|
eq({'x', 'y', 'y', 'a', 'b', 'a', 'c'}, eval('argv()'))
|
||||||
command('%argd')
|
command('%argd')
|
||||||
-- Nvim allows unescaped spaces in filename on all platforms. #6010
|
|
||||||
command('argedit a b')
|
command('argedit a b')
|
||||||
eq({'a b'}, eval('argv()'))
|
eq({'a', 'b'}, eval('argv()'))
|
||||||
end)
|
end)
|
||||||
|
|
||||||
it('test for :argdelete command', function()
|
it('test for :argdelete command', function()
|
||||||
|
|||||||
Reference in New Issue
Block a user