fix: wrap git rm callback in schedule_wrap (#475)
This commit is contained in:
parent
1fe476daf0
commit
b05374428e
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue