Remove async call to reset hunk

This commit is contained in:
Lewis Russell 2020-10-25 21:38:58 +00:00
parent 83a85d430d
commit 99d11eb76f
1 changed files with 2 additions and 2 deletions

View File

@ -419,7 +419,7 @@ local stage_hunk = async(function()
end
end)
local reset_hunk = async(function()
local reset_hunk = function()
local bufnr = current_buf()
local bcache = cache[bufnr]
local hunk = get_hunk(bufnr, bcache.diffs)
@ -447,7 +447,7 @@ local reset_hunk = async(function()
lend = hunk.start - 1 + length
end
api.nvim_buf_set_lines(bufnr, lstart, lend, false, orig_lines)
end)
end
local undo_stage_hunk = async(function()
local bufnr = current_buf()