aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/treesitter/dev.lua
diff options
context:
space:
mode:
authorJaehwang Jung <tomtomjhj@gmail.com>2023-10-17 10:51:36 +0900
committerGitHub <noreply@github.com>2023-10-16 20:51:36 -0500
commit35f475d0a51aad03abfc005a0224d315c45ffd67 (patch)
tree1124c0978baff457979587bca112367c7cafa0b0 /runtime/lua/vim/treesitter/dev.lua
parenta63c67005b9ea17214d86391e2fd649658c1bdec (diff)
downloadrneovim-35f475d0a51aad03abfc005a0224d315c45ffd67.tar.gz
rneovim-35f475d0a51aad03abfc005a0224d315c45ffd67.tar.bz2
rneovim-35f475d0a51aad03abfc005a0224d315c45ffd67.zip
fix(diagnostics): if buffer not loaded, skip handlers that set extmark (#25628)
Problem: When enabling diagnostics, there can be diagnostics for unloaded buffer, but some handlers nevertheless attempt to set extmarks in such buffers. Solution: * Exit underline/virtual_text handler if buffer is not loaded. * Don't require is_loaded as precondition for show(), because handlers don't necessarily depend on it.
Diffstat (limited to 'runtime/lua/vim/treesitter/dev.lua')
0 files changed, 0 insertions, 0 deletions