diff options
| author | liugh <46311996+gh-liu@users.noreply.github.com> | 2023-02-19 18:47:09 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-19 11:47:09 +0100 |
| commit | f409830422e2217630fb19c37a31d534cbdbe10e (patch) | |
| tree | fac9a8642ae7d3e709d4b66cdf2b5053ed27d0ce /lua/telescope/builtin/__internal.lua | |
| parent | 3d8bd0a105e327a9c8bacf387679313a87079c38 (diff) | |
fix(builtin.commands): add the command w/ zero arguments to cmd history when executed (#2320)
Diffstat (limited to 'lua/telescope/builtin/__internal.lua')
| -rw-r--r-- | lua/telescope/builtin/__internal.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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") |
