mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
fix(lsp): avoid assertion when client_hints
do not exist (#28461)
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user