Skip to content

Commit

Permalink
fix(current_line_blame): check valid buffers when resetting
Browse files Browse the repository at this point in the history
Closes #781
  • Loading branch information
lewis6991 committed Apr 21, 2023
1 parent 7d5a213 commit 7fe4482
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions teal/gitsigns/current_line_blame.tl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ end

local function reset(bufnr: integer)
bufnr = bufnr or current_buf()
if not api.nvim_buf_is_valid(bufnr) then
return
end
api.nvim_buf_del_extmark(bufnr, namespace, 1)
vim.b[bufnr].gitsigns_blame_line_dict = nil
end
Expand Down

0 comments on commit 7fe4482

Please sign in to comment.