fix(blame): remove empty line after hunk line
This commit is contained in:
@@ -339,7 +339,6 @@ local function extract_commit_hunk(diff_text, orig_line)
|
|||||||
end
|
end
|
||||||
local out = {} ---@type string[]
|
local out = {} ---@type string[]
|
||||||
table.insert(out, ("Hunk %d of %d"):format(target, #hunk_starts))
|
table.insert(out, ("Hunk %d of %d"):format(target, #hunk_starts))
|
||||||
table.insert(out, "")
|
|
||||||
local start_idx = hunk_starts[target]
|
local start_idx = hunk_starts[target]
|
||||||
local end_idx = hunk_starts[target + 1] and (hunk_starts[target + 1] - 1)
|
local end_idx = hunk_starts[target + 1] and (hunk_starts[target + 1] - 1)
|
||||||
or #lines
|
or #lines
|
||||||
|
|||||||
Reference in New Issue
Block a user