mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
fix(diagnostic): check if the buffer is loaded #35125
fix #35116 Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
This commit is contained in:
@@ -2873,7 +2873,7 @@ end
|
||||
vim.api.nvim_create_autocmd('DiagnosticChanged', {
|
||||
group = vim.api.nvim_create_augroup('nvim.diagnostic.status', {}),
|
||||
callback = function(ev)
|
||||
if vim.api.nvim_buf_is_valid(ev.buf) then
|
||||
if vim.api.nvim_buf_is_loaded(ev.buf) then
|
||||
vim.api.nvim__redraw({ buf = ev.buf, statusline = true })
|
||||
end
|
||||
end,
|
||||
|
Reference in New Issue
Block a user