fix: exiting picker from insert mode (#1202)

This commit is contained in:
fdschmidt93
2022-05-20 09:18:27 +02:00
committed by GitHub
parent 7bc8efd77b
commit b4c45e8c61
3 changed files with 6 additions and 2 deletions

View File

@@ -131,7 +131,7 @@ action_set.edit = function(prompt_bufnr, command)
local entry_bufnr = entry.bufnr
local picker = action_state.get_current_picker(prompt_bufnr)
require("telescope.actions").close(prompt_bufnr)
require("telescope.pickers").on_close_prompt(prompt_bufnr)
local win_id = picker.get_selection_window(picker, entry)
if picker.push_cursor_on_edit then