mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 02:38:46 +00:00
fix(explorer): dont process git when picker closed
This commit is contained in:
parent
c02beff2bd
commit
c255d9c6a0
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue