diff options
| author | Nathan B. <474047+nat-e@users.noreply.github.com> | 2026-08-13 15:17:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-13 09:17:16 -0400 |
| commit | faf8345eef8c9a59f254d3e4bafab1a9c125ee21 (patch) | |
| tree | d9ad8aee0f9a57f9ebb7446b9016cc7c943557ee /runtime/plugin/python_setup.vim | |
| parent | a1ea2f35be951673bd5ef100f96b756e9eec00f6 (diff) | |
| download | rneovim-faf8345eef8c9a59f254d3e4bafab1a9c125ee21.tar.gz rneovim-faf8345eef8c9a59f254d3e4bafab1a9c125ee21.tar.bz2 rneovim-faf8345eef8c9a59f254d3e4bafab1a9c125ee21.zip | |
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.
Diffstat (limited to 'runtime/plugin/python_setup.vim')
0 files changed, 0 insertions, 0 deletions