aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/diagnostic.lua
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2022-09-15 11:03:07 -0600
committerGitHub <noreply@github.com>2022-09-15 11:03:07 -0600
commit982fef6018fb64c883ddafc897c8f7c58fb1c62d (patch)
treec29f0f5d935b12c9eff2629b2a77bca4bf53b630 /runtime/lua/vim/diagnostic.lua
parent89b9eab638d5e6467156c25f0d54df48d861ca16 (diff)
downloadrneovim-982fef6018fb64c883ddafc897c8f7c58fb1c62d.tar.gz
rneovim-982fef6018fb64c883ddafc897c8f7c58fb1c62d.tar.bz2
rneovim-982fef6018fb64c883ddafc897c8f7c58fb1c62d.zip
fix(diagnostic): populate data key in DiagnosticChanged autocmd in reset (#20207)
Follow up to #20173.
Diffstat (limited to 'runtime/lua/vim/diagnostic.lua')
-rw-r--r--runtime/lua/vim/diagnostic.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/diagnostic.lua b/runtime/lua/vim/diagnostic.lua
index 172bd867c7..98dbe0779b 100644
--- a/runtime/lua/vim/diagnostic.lua
+++ b/runtime/lua/vim/diagnostic.lua
@@ -1426,6 +1426,7 @@ function M.reset(namespace, bufnr)
vim.api.nvim_exec_autocmds('DiagnosticChanged', {
modeline = false,
buffer = iter_bufnr,
+ data = { diagnostics = {} },
})
end
end