introduce new warning section, and refactor whitespace into an extension which uses it

This commit is contained in:
Bailey Ling
2013-08-07 00:17:33 +00:00
parent 4d67c802b3
commit 528f56472c
4 changed files with 18 additions and 3 deletions

View File

@@ -105,8 +105,7 @@ function! s:get_statusline(winnr, active)
let sl.=a:active ? g:airline_right_sep : g:airline_right_alt_sep
let sl.=l:mode_color
let sl.=s:get_section(a:winnr, 'z')
let sl.="%#Al3#"
let sl.='%{g:airline_detect_white_space && search(" $","nw") ? " ✹ " : ""}'
let sl.='%#Al3#'.s:getwinvar(a:winnr, 'airline_section_warning', '')
endif
return sl
endfunction