diff options
author | Famiu Haque <famiuhaque@protonmail.com> | 2022-05-11 22:51:53 +0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-11 10:51:53 -0600 |
commit | cf68f0a51202342163825015602bdf78b783c777 (patch) | |
tree | ad2c5b94cc178fdfef7b276db19dfe1bce978d0d /test/functional/api/vim_spec.lua | |
parent | a6f4cfdefa6937b7a0a364277a8157d483631f6d (diff) | |
download | rneovim-cf68f0a51202342163825015602bdf78b783c777.tar.gz rneovim-cf68f0a51202342163825015602bdf78b783c777.tar.bz2 rneovim-cf68f0a51202342163825015602bdf78b783c777.zip |
fix(api): make `nvim_cmd` work correctly with empty arguments list (#18527)
Closes #18526.
Diffstat (limited to 'test/functional/api/vim_spec.lua')
-rw-r--r-- | test/functional/api/vim_spec.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua index e07202c46f..f39aa2f20b 100644 --- a/test/functional/api/vim_spec.lua +++ b/test/functional/api/vim_spec.lua @@ -3615,5 +3615,9 @@ describe('API', function() it('errors if command is not implemented', function() eq("Command not implemented: popup", pcall_err(meths.cmd, { cmd = "popup" }, {})) end) + it('works with empty arguments list', function() + meths.cmd({ cmd = "update" }, {}) + meths.cmd({ cmd = "buffer", count = 0 }, {}) + end) end) end) |