allow extensions to reload when color scheme changes. resolves #128

This commit is contained in:
Bailey Ling 2013-08-10 15:50:21 +00:00
parent cf9028df9f
commit 8539ac46a6

View File

@ -33,6 +33,7 @@ function! airline#reload_highlight()
call airline#highlight(['inactive']) call airline#highlight(['inactive'])
call airline#highlight(['normal']) call airline#highlight(['normal'])
call airline#themes#exec_highlight_separator('Al2', 'warningmsg') call airline#themes#exec_highlight_separator('Al2', 'warningmsg')
call airline#extensions#load_theme()
endfunction endfunction
function! airline#load_theme(name) function! airline#load_theme(name)
@ -41,7 +42,6 @@ function! airline#load_theme(name)
let w:airline_lastmode = '' let w:airline_lastmode = ''
call airline#reload_highlight() call airline#reload_highlight()
call airline#update_highlight() call airline#update_highlight()
call airline#extensions#load_theme()
endfunction endfunction
function! airline#highlight(modes) function! airline#highlight(modes)