mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-07 20:28:28 +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
|
if opts.git_status then
|
||||||
require("snacks.explorer.git").update(ctx.filter.cwd, {
|
require("snacks.explorer.git").update(ctx.filter.cwd, {
|
||||||
on_update = function()
|
on_update = function()
|
||||||
|
if ctx.picker.closed then
|
||||||
|
return
|
||||||
|
end
|
||||||
ctx.picker:find()
|
ctx.picker:find()
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue