fix(builtin.commands): add the command w/ zero arguments to cmd history when executed (#2320)
This commit is contained in:
@@ -367,6 +367,7 @@ internal.commands = function(opts)
|
|||||||
|
|
||||||
if val.nargs == "0" then
|
if val.nargs == "0" then
|
||||||
vim.cmd(cmd)
|
vim.cmd(cmd)
|
||||||
|
vim.fn.histadd("cmd", val.name)
|
||||||
else
|
else
|
||||||
vim.cmd [[stopinsert]]
|
vim.cmd [[stopinsert]]
|
||||||
vim.fn.feedkeys(cmd, "n")
|
vim.fn.feedkeys(cmd, "n")
|
||||||
|
|||||||
Reference in New Issue
Block a user