From f409830422e2217630fb19c37a31d534cbdbe10e Mon Sep 17 00:00:00 2001 From: liugh <46311996+gh-liu@users.noreply.github.com> Date: Sun, 19 Feb 2023 18:47:09 +0800 Subject: [PATCH] fix(builtin.commands): add the command w/ zero arguments to cmd history when executed (#2320) --- lua/telescope/builtin/__internal.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/telescope/builtin/__internal.lua b/lua/telescope/builtin/__internal.lua index e1b6ce3..092d149 100644 --- a/lua/telescope/builtin/__internal.lua +++ b/lua/telescope/builtin/__internal.lua @@ -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")