Skip to content

Commit

Permalink
fix: GitSignsChanged autocmd for staged hunks
Browse files Browse the repository at this point in the history
Fixes #1168
  • Loading branch information
lewis6991 committed Jan 20, 2025
1 parent a5b801e commit ac38d78
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions lua/gitsigns/async.lua
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,4 @@ function M.run(func, ...)
return run(func, nil, ...)
end

--- @param func fun()
--- @return boolean stat
--- @return string? err
function M.pcall(func)
return M.await(1, function(cb)
run(func, cb)
end)
end

return M
2 changes: 1 addition & 1 deletion lua/gitsigns/git.lua
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ function Obj:stage_hunks(hunks, invert)
end
end

local stat, err = async.pcall(function()
local stat, err = pcall(function()
self.repo:command({
'apply',
'--whitespace=nowarn',
Expand Down

0 comments on commit ac38d78

Please sign in to comment.