Merge pull request #1803 from dfalling/master

Add dictionary key check for d.severity
This commit is contained in:
Christian Brabandt 2018-09-23 17:37:25 +02:00 committed by GitHub
commit dd508340ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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