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

@@ -1416,6 +1416,7 @@ end
function pickers.on_close_prompt(prompt_bufnr)
local status = state.get_status(prompt_bufnr)
local picker = status.picker
require("telescope.actions.state").get_current_history():reset()
if type(picker.cache_picker) == "table" then
local cached_pickers = state.get_global_key "cached_pickers" or {}