fix: wrong win on selection (#1951)

This commit is contained in:
fdschmidt93
2022-05-20 12:08:33 +02:00
committed by GitHub
parent b4c45e8c61
commit 1a91238a6a

View File

@@ -132,6 +132,7 @@ action_set.edit = function(prompt_bufnr, command)
local picker = action_state.get_current_picker(prompt_bufnr) local picker = action_state.get_current_picker(prompt_bufnr)
require("telescope.pickers").on_close_prompt(prompt_bufnr) require("telescope.pickers").on_close_prompt(prompt_bufnr)
pcall(vim.api.nvim_set_current_win, picker.original_win_id)
local win_id = picker.get_selection_window(picker, entry) local win_id = picker.get_selection_window(picker, entry)
if picker.push_cursor_on_edit then if picker.push_cursor_on_edit then