Skip to content

Commit

Permalink
fix(blame): check buffer still exists after loading
Browse files Browse the repository at this point in the history
Fixes #946
  • Loading branch information
lewis6991 committed Mar 29, 2024
1 parent 078041e commit 70584ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/gitsigns/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,10 @@ M.blame_line = async.void(function(opts)
loading:close()
end)

if not vim.api.nvim_buf_is_valid(bufnr) then
return
end

assert(result)

result = util.convert_blame_info(result)
Expand Down

0 comments on commit 70584ff

Please sign in to comment.