fix(picker): dont watch files for closed pickers. Fixes #2365

This commit is contained in:
Folke Lemaitre 2025-10-28 00:18:35 +01:00
parent 2b12958779
commit c4ec8b6d12
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -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