mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-06 12:14:24 +08:00
Add dictionary key check for d.severity
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user