fix(picker.watch): check again for closed picker after schedule. See #2365

This commit is contained in:
Folke Lemaitre 2025-10-29 17:25:37 +01:00
parent 14ead48b51
commit 8ad80de67b
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -66,6 +66,9 @@ function M.refresh()
picker.list:set_target()
end
vim.schedule(function()
if not picker or picker.closed then
return
end
picker:find()
end)
end