mirror of
https://github.com/zoriya/telescope.nvim.git
synced 2026-08-16 02:45:09 +00:00
fix(telescope.state.get_existing_prompts): it should only return keys that are numbers (#2684)
* fix(telescope.state.get_existing_prompts): it should only return keys that are numbers * Table keys not table values should be numbers * Rename get_existing_prompts to get_existing_prompt_bufnrs and make the impl more efficient
This commit is contained in:
@@ -1227,7 +1227,7 @@ end
|
||||
|
||||
--- Close all open Telescope pickers
|
||||
function Picker:close_existing_pickers()
|
||||
for _, prompt_bufnr in ipairs(state.get_existing_prompts()) do
|
||||
for _, prompt_bufnr in ipairs(state.get_existing_prompt_bufnrs()) do
|
||||
pcall(actions.close, prompt_bufnr)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user