hotfix: regression from latest commit, files could no longer be opened

This commit is contained in:
Simon Hauser
2022-05-15 22:13:32 +02:00
parent 0b5f1d69d7
commit 01fc5a9274

View File

@@ -130,8 +130,8 @@ action_set.edit = function(prompt_bufnr, command)
local entry_bufnr = entry.bufnr local entry_bufnr = entry.bufnr
require("telescope.actions").close(prompt_bufnr)
local picker = action_state.get_current_picker(prompt_bufnr) local picker = action_state.get_current_picker(prompt_bufnr)
require("telescope.actions").close(prompt_bufnr)
local win_id = picker.get_selection_window(picker, entry) local win_id = picker.get_selection_window(picker, entry)
if win_id ~= 0 and a.nvim_get_current_win() ~= win_id then if win_id ~= 0 and a.nvim_get_current_win() ~= win_id then
vim.api.nvim_set_current_win(win_id) vim.api.nvim_set_current_win(win_id)