From 6a403ddf98e182d73ec280361135c391af111eec Mon Sep 17 00:00:00 2001 From: Senghan Bright Date: Mon, 4 Jan 2021 07:09:55 +0100 Subject: [PATCH] add selected command to cmd-history (#383) --- lua/telescope/actions/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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