fix(builtin.commands): add the command w/ zero arguments to cmd history when executed (#2320)

This commit is contained in:
liugh
2023-02-19 18:47:09 +08:00
committed by GitHub
parent 3d8bd0a105
commit f409830422

View File

@@ -367,6 +367,7 @@ internal.commands = function(opts)
if val.nargs == "0" then
vim.cmd(cmd)
vim.fn.histadd("cmd", val.name)
else
vim.cmd [[stopinsert]]
vim.fn.feedkeys(cmd, "n")