make syntastic use the warning section

This commit is contained in:
Bailey Ling
2013-08-06 21:42:32 -04:00
parent 7fb9bcf2c9
commit d2c069b971
4 changed files with 12 additions and 8 deletions

View File

@@ -10,7 +10,7 @@ function! airline#extensions#whitespace#check()
let mixed = search('^ ', 'nw') != 0 && search('^\t', 'nw') != 0
if trailing || mixed
let text = " ".g:airline_whitespace_symbol." "
let text = g:airline_whitespace_symbol." "
if g:airline_detect_whitespace == 1
if trailing
let text .= 'trailing '