mirror of
https://github.com/lewis6991/gitsigns.nvim
synced 2024-09-16 14:34:09 +02:00
fix: #986
This commit is contained in:
parent
c02516144a
commit
05226b4d41
1 changed files with 5 additions and 1 deletions
|
@ -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,
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue