aboutsummaryrefslogtreecommitdiff
path: root/runtime/plugin/python_setup.vim
diff options
context:
space:
mode:
authorNathan B. <474047+nat-e@users.noreply.github.com>2026-08-13 15:17:16 +0200
committerGitHub <noreply@github.com>2026-08-13 09:17:16 -0400
commitfaf8345eef8c9a59f254d3e4bafab1a9c125ee21 (patch)
treed9ad8aee0f9a57f9ebb7446b9016cc7c943557ee /runtime/plugin/python_setup.vim
parenta1ea2f35be951673bd5ef100f96b756e9eec00f6 (diff)
downloadrneovim-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