Files
neovim/runtime/lua/vim
Mathias Fußenegger 48f0545594 fix(diagnostic): clear stale cache on reset (#21454)
The BufWipeout autocmd is not 100% reliable and may leave stale entries
in the cache. This is sort of a hack/workaround to ensure
`vim.diagnostic.reset` calls don't fail if there are stale cache entries
but instead clears them

Fixes errors like

    Error executing vim.schedule lua callback: /usr/share/nvim/runtime/lua/vim/diagnostic.lua:1458: Invalid buffer id: 22
    stack traceback:
            [C]: in function 'nvim_exec_autocmds'
            /usr/share/nvim/runtime/lua/vim/diagnostic.lua:1458: in function 'reset'

(cherry picked from commit 1743359235)
2022-12-18 19:25:20 +01:00
..
2022-09-09 12:38:15 +01:00
2022-05-09 16:31:55 +02:00
2022-10-12 12:09:10 +00:00
2022-05-09 16:31:55 +02:00