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