fix: wrap git rm callback in schedule_wrap (#475)

This commit is contained in:
Steven Arcangeli 2024-09-10 11:44:04 -07:00
parent 1fe476daf0
commit b05374428e

View file

@ -554,13 +554,13 @@ M.perform_action = function(action, cb)
if config.git.rm(path) then
local old_cb = cb
cb = function(err)
cb = vim.schedule_wrap(function(err)
if not err then
git.rm(path, old_cb)
else
old_cb(err)
end
end
end)
end
if config.delete_to_trash then