fix: ensure buffer is listed before edit_buffer (#1492)
This commit is contained in:
@@ -125,6 +125,9 @@ action_set.edit = function(prompt_bufnr, command)
|
||||
require("telescope.actions").close(prompt_bufnr)
|
||||
|
||||
if entry_bufnr then
|
||||
if not vim.api.nvim_buf_get_option(entry_bufnr, "buflisted") then
|
||||
vim.api.nvim_buf_set_option(entry_bufnr, "buflisted", true)
|
||||
end
|
||||
edit_buffer(command, entry_bufnr)
|
||||
else
|
||||
-- check if we didn't pick a different buffer
|
||||
|
||||
Reference in New Issue
Block a user