summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorfdschmidt93 <39233597+fdschmidt93@users.noreply.github.com>2022-05-20 12:08:33 +0200
committerGitHub <noreply@github.com>2022-05-20 12:08:33 +0200
commit1a91238a6ad7a1f77fabdbee7225692a04b20d48 (patch)
treed038bb72f635ef26bc06c3c0b5ae964a3859103d /lua
parentb4c45e8c610c8dc60483b49936dee8a4d0b9c532 (diff)
fix: wrong win on selection (#1951)
Diffstat (limited to 'lua')
-rw-r--r--lua/telescope/actions/set.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/telescope/actions/set.lua b/lua/telescope/actions/set.lua
index 3164f72..017975b 100644
--- a/lua/telescope/actions/set.lua
+++ b/lua/telescope/actions/set.lua
@@ -132,6 +132,7 @@ action_set.edit = function(prompt_bufnr, command)
local picker = action_state.get_current_picker(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)
if picker.push_cursor_on_edit then