From: Santosh Bandichode Date: Sun, 13 Nov 2022 09:39:43 +0000 (+0530) Subject: Check for dict type before checking for keys X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=97c7aa8ea82f322457412c2fcb8d71adbef9cbca;p=vim-lsp.git Check for dict type before checking for keys --- diff --git a/autoload/lsp/completion.vim b/autoload/lsp/completion.vim index 1c5e702..e539e0e 100644 --- a/autoload/lsp/completion.vim +++ b/autoload/lsp/completion.vim @@ -354,7 +354,7 @@ def LspSetFileType() endif var cItem = item.user_data - if !cItem->has_key('documentation') || cItem->type() != v:t_dict + if cItem->type() != v:t_dict || !cItem->has_key('documentation') || cItem.documentation.kind != 'markdown' return endif