mirror of
https://github.com/neovim/neovim.git
synced 2026-08-28 18:11:47 +00:00
fix(api): make nvim_cmd work correctly with empty arguments list (#18527)
Closes #18526.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user