Add dictionary key check for d.severity
This commit is contained in:
parent
ae024293e4
commit
2f17e368b5
|
@ -67,7 +67,7 @@ function! airline#extensions#languageclient#get(type)
|
||||||
|
|
||||||
let cnt = 0
|
let cnt = 0
|
||||||
for d in s:diagnostics_for_buffer()
|
for d in s:diagnostics_for_buffer()
|
||||||
if d.severity == a:type
|
if has_key(d, 'severity') && d.severity == a:type
|
||||||
let cnt += 1
|
let cnt += 1
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
|
Loading…
Reference in New Issue