Files
neovim/runtime/lua/vim
Nathan B. faf8345eef fix(diagnostic): don't accumulate BufRead autocmds for unloaded buffers #40869
Problem:
vim.diagnostic.set() defers extmark position computation for an
unloaded buffer via a once=true BufRead autocmd, registering a new one
on every call without replacing the previous one. Each pending autocmd
also retains that call's diagnostics.

Solution:
Instead of registering an autocmd per set() call, register a single
static BufRead autocmd that computes positions from the diagnostic
cache for any buffer with cached diagnostics when it is read. This
removes the per-call registration entirely (nothing left to
accumulate) and means diagnostics cleared while the buffer was
unloaded no longer produce stale extmarks.
2026-08-13 09:17:16 -04:00
..
2026-07-25 12:47:51 -04:00
2026-08-06 10:27:29 +02:00
2026-06-08 16:12:14 -04:00
2026-01-09 10:07:15 +01:00
2026-07-20 09:53:06 -04:00
2026-05-30 12:57:24 +02:00
2026-07-13 19:44:15 +02:00