mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
fix(diagnostic): set effective buffer number in autocmd (again) (#16589)
Follow up to #16474.
This commit is contained in:
parent
2cd815c0af
commit
6063e07a0f
@ -1344,12 +1344,14 @@ function M.reset(namespace, bufnr)
|
||||
end
|
||||
end
|
||||
|
||||
vim.api.nvim_command(
|
||||
string.format(
|
||||
"doautocmd <nomodeline> DiagnosticChanged %s",
|
||||
vim.fn.fnameescape(vim.api.nvim_buf_get_name(bufnr))
|
||||
vim.api.nvim_buf_call(bufnr, function()
|
||||
vim.api.nvim_command(
|
||||
string.format(
|
||||
"doautocmd <nomodeline> DiagnosticChanged %s",
|
||||
vim.fn.fnameescape(vim.api.nvim_buf_get_name(bufnr))
|
||||
)
|
||||
)
|
||||
)
|
||||
end)
|
||||
end
|
||||
|
||||
--- Add all diagnostics to the quickfix list.
|
||||
|
Loading…
Reference in New Issue
Block a user