Skip to content

Commit

Permalink
fix(blame): render blame end_col out of range
Browse files Browse the repository at this point in the history
  • Loading branch information
belltoy authored and lewis6991 committed Jul 7, 2024
1 parent 39b5b6f commit aa12bb9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lua/gitsigns/blame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@ local function render(blame, win, main_win, buf_sha)
})

if commit_lines[i] then
api.nvim_buf_set_extmark(bufnr, ns, i - 1, win_width - 10, {
end_col = win_width,
local width = string.len(lines[i])
api.nvim_buf_set_extmark(bufnr, ns, i - 1, width - 10, {
end_col = width,
hl_group = 'Title',
})
else
Expand Down

0 comments on commit aa12bb9

Please sign in to comment.