diff options
| author | Senghan Bright <senghan.bright@deltaprojects.com> | 2021-01-04 07:09:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-04 07:09:55 +0100 |
| commit | 6a403ddf98e182d73ec280361135c391af111eec (patch) | |
| tree | 11d1400b8915ea09a5f8c27efa8b50e813998854 /lua | |
| parent | 4691863f4358857a02d3b78049453f7a3abdfac9 (diff) | |
add selected command to cmd-history (#383)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/actions/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/actions/init.lua b/lua/telescope/actions/init.lua index f52e043..fdd400c 100644 --- a/lua/telescope/actions/init.lua +++ b/lua/telescope/actions/init.lua @@ -180,7 +180,7 @@ actions.set_command_line = function(prompt_bufnr) local entry = actions.get_selected_entry(prompt_bufnr) actions.close(prompt_bufnr) - + vim.fn.histadd("cmd", entry.value) vim.cmd(entry.value) end |
