diff --git a/lua/snacks/explorer/watch.lua b/lua/snacks/explorer/watch.lua index 80a1773d..6802af9c 100644 --- a/lua/snacks/explorer/watch.lua +++ b/lua/snacks/explorer/watch.lua @@ -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