fix newb mistake. resolves #125.

This commit is contained in:
Bailey Ling
2013-08-09 20:51:11 +00:00
parent aabb061470
commit 44db0e0c70
2 changed files with 5 additions and 8 deletions

View File

@@ -106,10 +106,10 @@ function! s:get_statusline(winnr, active)
let sl.=l:mode_color
let sl.=s:get_section(a:winnr, 'z')
" if a:active
" let warngroup = airline#themes#exec_highlight_separator('Al2', 'warningmsg')
" let sl.='%(%#'.warngroup.'#'.g:airline_right_sep.'%#warningmsg#'.s:getwinvar(a:winnr, 'airline_section_warning', '').'%)'
" endif
if a:active
let warngroup = airline#themes#exec_highlight_separator('Al2', 'warningmsg')
let sl.='%(%#'.warngroup.'#'.g:airline_right_sep.'%#warningmsg#'.s:getwinvar(a:winnr, 'airline_section_warning', '').'%)'
endif
endif
return sl
endfunction