fix(explorer): dont process git when picker closed

This commit is contained in:
Folke Lemaitre 2025-02-04 18:03:20 +01:00
parent c02beff2bd
commit c255d9c6a0
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -192,6 +192,9 @@ function M.explorer(opts, ctx)
if opts.git_status then
require("snacks.explorer.git").update(ctx.filter.cwd, {
on_update = function()
if ctx.picker.closed then
return
end
ctx.picker:find()
end,
})