From: shane.xb.qian Date: Mon, 14 Nov 2022 10:00:09 +0000 (+0800) Subject: fix: should check type of complete_item.doc X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=60e2960b37fa465f64b2f81f5a28fe162e183096;p=vim-lsp.git fix: should check type of complete_item.doc --- diff --git a/autoload/lsp/completion.vim b/autoload/lsp/completion.vim index 6d201bb..8138e56 100644 --- a/autoload/lsp/completion.vim +++ b/autoload/lsp/completion.vim @@ -352,7 +352,8 @@ def LspSetFileType() var cItem = item.user_data if cItem->type() != v:t_dict || !cItem->has_key('documentation') - || cItem.documentation.kind != 'markdown' + \ || cItem.documentation->type() != v:t_dict + \ || cItem.documentation.kind != 'markdown' return endif