mirror of
https://github.com/zoriya/telescope.nvim.git
synced 2026-06-05 11:59:42 +00:00
fix(builtin.commands): add the command w/ zero arguments to cmd history when executed (#2320)
(cherry picked from commit f409830422)
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user