diff options
| author | Christopher Laidler <43636691+claidler@users.noreply.github.com> | 2021-03-16 21:50:06 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-17 04:50:06 +0700 |
| commit | 812fae1d718e276e18784a0d054b16d39ba0208c (patch) | |
| tree | 0f70822b899b2bf4f211fbe3997842814b90197d /lua | |
| parent | 284f38c57539967b25c7d32700acffd46599c49f (diff) | |
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 <actions@github>
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/actions/init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
