Merge pull request #377 from blueyed/eclim-filter-signs
eclim: only consider signs placed by eclim
This commit is contained in:
commit
9039793343
@ -17,6 +17,11 @@ endfunction
|
|||||||
|
|
||||||
function! airline#extensions#eclim#get_warnings()
|
function! airline#extensions#eclim#get_warnings()
|
||||||
let eclimList = eclim#display#signs#GetExisting()
|
let eclimList = eclim#display#signs#GetExisting()
|
||||||
|
|
||||||
|
if !empty(eclimList)
|
||||||
|
" Remove any non-eclim signs (see eclim#display#signs#Update)
|
||||||
|
call filter(eclimList, "v:val.name =~ '^\(qf_\)\?\(error\|info\|warning\)$'")
|
||||||
|
|
||||||
if !empty(eclimList)
|
if !empty(eclimList)
|
||||||
let errorsLine = eclimList[0]['line']
|
let errorsLine = eclimList[0]['line']
|
||||||
let errorsNumber = len(eclimList)
|
let errorsNumber = len(eclimList)
|
||||||
@ -25,6 +30,7 @@ function! airline#extensions#eclim#get_warnings()
|
|||||||
return errors.(g:airline_symbols.space)
|
return errors.(g:airline_symbols.space)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
return ''
|
return ''
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user