mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-23 05:42:12 +08:00
filter() result error
This commit is contained in:
parent
ab92a95969
commit
3bde2fabd1
|
@ -20,7 +20,8 @@ function! airline#extensions#eclim#get_warnings()
|
|||
|
||||
if !empty(eclimList)
|
||||
" Remove any non-eclim signs (see eclim#display#signs#Update)
|
||||
call filter(eclimList, "v:val.name =~ '^\(qf_\)\?\(error\|info\|warning\)$'")
|
||||
" :help filter() ---- `the result **is zero** remove the item from the |List| or |Dictionary|.`
|
||||
call filter(eclimList, "v:val.name != '^\(qf_\)\?\(error\|info\|warning\)$'")
|
||||
|
||||
if !empty(eclimList)
|
||||
let errorsLine = eclimList[0]['line']
|
||||
|
|
Loading…
Reference in New Issue
Block a user