From 52b4100a4f300c8aab753f72243f639203446813 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Fri, 9 Aug 2013 20:50:53 -0400 Subject: [PATCH] reload separator color when colorscheme changes --- autoload/airline.vim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/autoload/airline.vim b/autoload/airline.vim index 81d02c0b..b9855afe 100644 --- a/autoload/airline.vim +++ b/autoload/airline.vim @@ -32,13 +32,14 @@ endfunction function! airline#reload_highlight() call airline#highlight(['inactive']) call airline#highlight(['normal']) + call airline#themes#exec_highlight_separator('Al2', 'warningmsg') endfunction function! airline#load_theme(name) let g:airline_theme = a:name let inactive_colors = g:airline#themes#{g:airline_theme}#inactive "also lazy loads the theme let w:airline_lastmode = '' - call airline#highlight(['inactive']) + call airline#reload_highlight() call airline#update_highlight() call airline#extensions#load_theme() endfunction @@ -107,8 +108,8 @@ function! s:get_statusline(winnr, active) 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', '').'%)' + let sl.='%(%#Al2_to_warningmsg#'.g:airline_right_sep + let sl.='%#warningmsg#'.s:getwinvar(a:winnr, 'airline_section_warning', '').'%)' endif endif return sl