fix(lsp): avoid assertion when client_hints do not exist (#28461)

This commit is contained in:
Yi Ming authored and GitHub committed 2024-04-22 20:18:49 +02:00
1 parent ea1c9f60e0
commit 39fc340276
1 file changed
+4
+4
View File
@@ -311,6 +311,10 @@ api.nvim_set_decoration_provider(namespace, {
if bufstate.version ~= util.buf_versions[bufnr] then
return
end
if not bufstate.client_hints then
return
end
local hints_by_client = assert(bufstate.client_hints)
for lnum = topline, botline do