aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/shared.lua
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2022-09-07 03:55:03 +0100
committerGitHub <noreply@github.com>2022-09-06 20:55:03 -0600
commitf32fd19f1eedbd75e6a37b73f28cf8761e0e875c (patch)
treebb59ad9f126bdb6fc099af08696c1ddae117d303 /runtime/lua/vim/shared.lua
parentb17c5c3d9c9f51423c3d8c7f76711ad82191bdcf (diff)
downloadrneovim-f32fd19f1eedbd75e6a37b73f28cf8761e0e875c.tar.gz
rneovim-f32fd19f1eedbd75e6a37b73f28cf8761e0e875c.tar.bz2
rneovim-f32fd19f1eedbd75e6a37b73f28cf8761e0e875c.zip
fix(diagnostic): remove buf from cache on `BufWipeout` (#20099)
Doing so on `BufDelete` has issues: - `BufDelete` is also fired for listed buffers that are made unlisted. - `BufDelete` is not fired for unlisted buffers that are deleted. This means that diagnostics will be lost for a buffer that becomes unlisted. It also means that if an entry exists for an unlisted buffer, deleting that buffer later will not remove its entry from the cache (and you may see "Invalid buffer id" errors when using diagnostic functions if it was wiped). Instead, remove a buffer from the cache if it is wiped out. This means simply `:bd`ing a buffer will not clear its diagnostics now.
Diffstat (limited to 'runtime/lua/vim/shared.lua')
0 files changed, 0 insertions, 0 deletions