diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-05-05 19:33:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-05 19:33:06 +0800 |
commit | d9f0d2da4d29847542072099f103e7248fcacaab (patch) | |
tree | 8f659e7b0380b57885b04782e01fb04a31918ef8 /test/functional/api/vim_spec.lua | |
parent | 648f777931d49b8013146f69d7e2776f69c52900 (diff) | |
parent | 3a1e17e3a1767b4ff8a082150f7f9d6bda50cc8f (diff) | |
download | rneovim-d9f0d2da4d29847542072099f103e7248fcacaab.tar.gz rneovim-d9f0d2da4d29847542072099f103e7248fcacaab.tar.bz2 rneovim-d9f0d2da4d29847542072099f103e7248fcacaab.zip |
Merge pull request #23482 from zeertzjq/do-cmdline-verbose
fix(excmd): append original command to error message
Diffstat (limited to 'test/functional/api/vim_spec.lua')
-rw-r--r-- | test/functional/api/vim_spec.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua index af6fbf092a..c81b6e90cc 100644 --- a/test/functional/api/vim_spec.lua +++ b/test/functional/api/vim_spec.lua @@ -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() |