mirror of
https://github.com/neovim/neovim.git
synced 2025-11-06 02:34:28 +00:00
fix(diagnostic): set effective buffer number in autocmd (again) (#16590)
Follow up to #16474.
This commit is contained in:
committed by
GitHub
parent
beac24d6f3
commit
08ddfa9851
@@ -1341,12 +1341,14 @@ function M.reset(namespace, bufnr)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.api.nvim_command(
|
vim.api.nvim_buf_call(bufnr, function()
|
||||||
string.format(
|
vim.api.nvim_command(
|
||||||
"doautocmd <nomodeline> DiagnosticChanged %s",
|
string.format(
|
||||||
vim.fn.fnameescape(vim.api.nvim_buf_get_name(bufnr))
|
"doautocmd <nomodeline> DiagnosticChanged %s",
|
||||||
|
vim.fn.fnameescape(vim.api.nvim_buf_get_name(bufnr))
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Add all diagnostics to the quickfix list.
|
--- Add all diagnostics to the quickfix list.
|
||||||
|
|||||||
Reference in New Issue
Block a user