Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork6.4k
Commitf32fd19
authored
fix(diagnostic): remove buf from cache on
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 thatbuffer later will not remove its entry from the cache (and you may see "Invalidbuffer 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.BufWipeout (#20099)1 parentb17c5c3 commitf32fd19
File tree
2 files changed
+11
-2
lines changed- runtime/lua/vim
- test/functional/lua
2 files changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
151 | 160 | | |
152 | 161 | | |
153 | 162 | | |
| |||
0 commit comments
Comments
(0)