From 2f17e368b50755dda24304f4f29bafd49beb4a2f Mon Sep 17 00:00:00 2001 From: Dennis Falling Date: Sun, 23 Sep 2018 10:50:15 -0400 Subject: [PATCH] Add dictionary key check for d.severity --- autoload/airline/extensions/languageclient.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/extensions/languageclient.vim b/autoload/airline/extensions/languageclient.vim index f9b7771..82fed28 100644 --- a/autoload/airline/extensions/languageclient.vim +++ b/autoload/airline/extensions/languageclient.vim @@ -67,7 +67,7 @@ function! airline#extensions#languageclient#get(type) let cnt = 0 for d in s:diagnostics_for_buffer() - if d.severity == a:type + if has_key(d, 'severity') && d.severity == a:type let cnt += 1 endif endfor