commit
4d0c4f6b1e
@ -16,7 +16,13 @@ function! airline#extensions#eclim#creat_line(...)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#extensions#eclim#get_warnings()
|
function! airline#extensions#eclim#get_warnings()
|
||||||
|
" Cache vavlues, so that it isn't called too often
|
||||||
|
if exists("s:eclim_errors") &&
|
||||||
|
\ get(b:, 'airline_changenr', 0) == changenr()
|
||||||
|
return s:eclim_errors
|
||||||
|
endif
|
||||||
let eclimList = eclim#display#signs#GetExisting()
|
let eclimList = eclim#display#signs#GetExisting()
|
||||||
|
let s:eclim_errors = ''
|
||||||
|
|
||||||
if !empty(eclimList)
|
if !empty(eclimList)
|
||||||
" Remove any non-eclim signs (see eclim#display#signs#Update)
|
" Remove any non-eclim signs (see eclim#display#signs#Update)
|
||||||
@ -39,11 +45,12 @@ function! airline#extensions#eclim#get_warnings()
|
|||||||
let errorsNumber = len(eclimList)
|
let errorsNumber = len(eclimList)
|
||||||
let errors = "[Eclim:" . type . " line:".string(errorsLine)." (".string(errorsNumber).")]"
|
let errors = "[Eclim:" . type . " line:".string(errorsLine)." (".string(errorsNumber).")]"
|
||||||
if !exists(':SyntasticCheck') || SyntasticStatuslineFlag() == ''
|
if !exists(':SyntasticCheck') || SyntasticStatuslineFlag() == ''
|
||||||
return errors.(g:airline_symbols.space)
|
let s:eclim_errors = errors.(g:airline_symbols.space)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
return ''
|
let b:airline_changenr = changenr()
|
||||||
|
return s:eclim_errors
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#extensions#eclim#init(ext)
|
function! airline#extensions#eclim#init(ext)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user