mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(picker): dont watch files for closed pickers. Fixes #2365
This commit is contained in:
parent
2b12958779
commit
c4ec8b6d12
1 changed files with 1 additions and 0 deletions
|
|
@ -64,6 +64,7 @@ function M.get(opts)
|
|||
for picker in pairs(M._active) do
|
||||
local want = (not opts.source or picker.opts.source == opts.source)
|
||||
and (opts.tab == false or picker:on_current_tab())
|
||||
and not picker.closed
|
||||
if want then
|
||||
ret[#ret + 1] = picker
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue