Merge pull request #467 from xinleibird/master

filter() result error
This commit is contained in:
Bailey Ling 2014-03-22 11:48:17 -04:00
commit 42a4590948

View File

@ -20,7 +20,7 @@ function! airline#extensions#eclim#get_warnings()
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)
call filter(eclimList, "v:val.name =~ '^\(qf_\)\?\(error\|info\|warning\)$'") 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']