parent
da8035d8a8
commit
aec0a1a15a
@ -45,7 +45,7 @@ endfunction
|
|||||||
function! s:airline_languageclient_get_line_number(type) abort
|
function! s:airline_languageclient_get_line_number(type) abort
|
||||||
let linenumber_of_first_problem = 0
|
let linenumber_of_first_problem = 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 linenumber_of_first_problem = d.range.start.line
|
let linenumber_of_first_problem = d.range.start.line
|
||||||
break
|
break
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user