mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
test: add tests for executing commands with backwards range
This commit is contained in:
@@ -361,6 +361,12 @@ describe('API', function()
|
||||
eq('', eval('v:errmsg')) -- v:errmsg was not updated.
|
||||
eq('', eval('v:exception'))
|
||||
end)
|
||||
|
||||
it('gives E493 instead of prompting on backwards range', function()
|
||||
command('split')
|
||||
eq('Vim(windo):E493: Backwards range given: 2,1windo echo',
|
||||
pcall_err(command, '2,1windo echo'))
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('nvim_command_output', function()
|
||||
|
Reference in New Issue
Block a user