mirror of
https://github.com/neovim/neovim.git
synced 2024-09-17 20:58:20 -04:00
fix(lsp): avoid assertion when client_hints
do not exist (#28461)
This commit is contained in:
parent
ea1c9f60e0
commit
39fc340276
@ -311,6 +311,10 @@ api.nvim_set_decoration_provider(namespace, {
|
|||||||
if bufstate.version ~= util.buf_versions[bufnr] then
|
if bufstate.version ~= util.buf_versions[bufnr] then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not bufstate.client_hints then
|
||||||
|
return
|
||||||
|
end
|
||||||
local hints_by_client = assert(bufstate.client_hints)
|
local hints_by_client = assert(bufstate.client_hints)
|
||||||
|
|
||||||
for lnum = topline, botline do
|
for lnum = topline, botline do
|
||||||
|
Loading…
Reference in New Issue
Block a user