From 812fae1d718e276e18784a0d054b16d39ba0208c Mon Sep 17 00:00:00 2001 From: Christopher Laidler <43636691+claidler@users.noreply.github.com> Date: Tue, 16 Mar 2021 21:50:06 +0000 Subject: fix: related to #13 telescope-project, enter insert mode on prompt close (#637) * fix: related to #13 telescope-project, enter insert mode on prompt close * fix: related to #13 telescope-project, enter insert mode on prompt close * revert changes made in error * fix PR issue * fix: undefined variable do_close * use action_state as actions is deprecated * [docgen] Update doc/telescope.txt skip-checks: true Co-authored-by: Github Actions --- lua/telescope/actions/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lua') diff --git a/lua/telescope/actions/init.lua b/lua/telescope/actions/init.lua index 8b5174d..9eca442 100644 --- a/lua/telescope/actions/init.lua +++ b/lua/telescope/actions/init.lua @@ -196,7 +196,7 @@ function actions.close_pum(_) end end -local do_close = function(prompt_bufnr, keepinsert) +actions._close = function(prompt_bufnr, keepinsert) local picker = action_state.get_current_picker(prompt_bufnr) local prompt_win = state.get_status(prompt_bufnr).prompt_win local original_win_id = picker.original_win_id @@ -217,7 +217,7 @@ local do_close = function(prompt_bufnr, keepinsert) end function actions.close(prompt_bufnr) - do_close(prompt_bufnr, false) + actions._close(prompt_bufnr, false) end actions.edit_command_line = function(prompt_bufnr) @@ -276,7 +276,7 @@ end actions.run_builtin = function(prompt_bufnr) local entry = action_state.get_selected_entry(prompt_bufnr) - do_close(prompt_bufnr, true) +actions._close(prompt_bufnr, true) require('telescope.builtin')[entry.text]() end -- cgit v1.2.3