aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/executor.c
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2023-01-19 19:37:12 +0000
committerJosh Rahm <joshuarahm@gmail.com>2023-01-26 19:05:59 +0000
commit8896b7ea0d98be33d07ae33fbd4bec47c9520f64 (patch)
tree145e2b57e944b1707c0ecf149ce6cf875978af8f /src/nvim/lua/executor.c
parent6a1afb97a73027abfddabf672ad80bca18974c44 (diff)
downloadrneovim-8896b7ea0d98be33d07ae33fbd4bec47c9520f64.tar.gz
rneovim-8896b7ea0d98be33d07ae33fbd4bec47c9520f64.tar.bz2
rneovim-8896b7ea0d98be33d07ae33fbd4bec47c9520f64.zip
fix(semantic_tokens.lua): Fix nil tokens/data in semantic_tokens.lua
Some (poorly-implemented) LSPs can return an empty JSON object in LSP responses, which could cause tokens to be nil, which would eventually cause an error and a bad UI experience. This fix makes sure that the tokens variable is always set to a non-nil value.
Diffstat (limited to 'src/nvim/lua/executor.c')
0 files changed, 0 insertions, 0 deletions