]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
fix: should check type of complete_item.doc
authorshane.xb.qian <shane.qian@foxmail.com>
Mon, 14 Nov 2022 10:00:09 +0000 (18:00 +0800)
committershane.xb.qian <shane.qian@foxmail.com>
Mon, 14 Nov 2022 10:00:09 +0000 (18:00 +0800)
autoload/lsp/completion.vim

index 6d201bbb12f420aea859f616f292b6ccfdde9614..8138e56eae3828ede57c3a387615b76cc07d3f9f 100644 (file)
@@ -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