Skip to content

Commit

Permalink
fix: #986
Browse files Browse the repository at this point in the history
  • Loading branch information
lewis6991 committed Apr 17, 2024
1 parent c025161 commit 05226b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/gitsigns/attach.lua
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,11 @@ local setup = util.once(function()
pattern = { 'fileformat', 'bomb', 'eol' },
callback = function()
local buf = vim.api.nvim_get_current_buf()
cache[buf]:invalidate(true)
local bcache = cache[buf]
if not bcache then
return
end
bcache:invalidate(true)
manager.update(buf)
end,
})
Expand Down

0 comments on commit 05226b4

Please sign in to comment.