diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-06-27 14:10:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-27 14:10:13 +0800 |
commit | cf23695dd748281daaf68e69ac48bf9eb27f2425 (patch) | |
tree | 7f92fadadcec13599a0da4997adf3f16a9a5068e /test/functional/api/vim_spec.lua | |
parent | e2f9d0332b673431d79f0db9386956055674006b (diff) | |
download | rneovim-cf23695dd748281daaf68e69ac48bf9eb27f2425.tar.gz rneovim-cf23695dd748281daaf68e69ac48bf9eb27f2425.tar.bz2 rneovim-cf23695dd748281daaf68e69ac48bf9eb27f2425.zip |
fix(api): nvim_parse_cmd check for ambiguous user command (#19116)
Diffstat (limited to 'test/functional/api/vim_spec.lua')
-rw-r--r-- | test/functional/api/vim_spec.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua index ef6798dea3..c05345dd4c 100644 --- a/test/functional/api/vim_spec.lua +++ b/test/functional/api/vim_spec.lua @@ -3520,6 +3520,9 @@ describe('API', function() pcall_err(meths.parse_cmd, 'Fubar!', {})) eq('Error while parsing command line: E481: No range allowed', pcall_err(meths.parse_cmd, '4,6Fubar', {})) + command('command! Foobar echo foo') + eq('Error while parsing command line: E464: Ambiguous use of user-defined command', + pcall_err(meths.parse_cmd, 'F', {})) end) end) describe('nvim_cmd', function() |