make warning a real section. references #136.

This commit is contained in:
Bailey Ling
2013-08-13 20:43:04 +00:00
parent d20bdc54e5
commit 9dd682212f
3 changed files with 7 additions and 5 deletions

View File

@@ -109,7 +109,7 @@ function! airline#get_statusline(winnr, active)
if a:active
let sl.='%(%#Al2_to_warningmsg#'.g:airline_right_sep
let sl.='%#warningmsg#'.s:getwinvar(a:winnr, 'airline_section_warning', '').'%)'
let sl.='%#warningmsg#'.s:get_section(a:winnr, 'warning', '', '').'%)'
endif
endif
return sl