Move AirlineAfterTheme to load_theme()
So it gets called when colorscheme changes.
This commit is contained in:
parent
cb1bc19064
commit
3d7dfa8ef6
|
@ -53,6 +53,8 @@ function! airline#load_theme()
|
|||
call airline#highlighter#load_theme()
|
||||
call airline#extensions#load_theme()
|
||||
call airline#update_statusline()
|
||||
|
||||
call airline#util#doautocmd('AirlineAfterTheme')
|
||||
endfunction
|
||||
|
||||
" Load an airline theme
|
||||
|
@ -93,8 +95,6 @@ function! airline#switch_theme(name, ...)
|
|||
unlet! w:airline_lastmode
|
||||
call airline#load_theme()
|
||||
|
||||
call airline#util#doautocmd('AirlineAfterTheme')
|
||||
|
||||
" this is required to prevent clobbering the startup info message, i don't know why...
|
||||
call airline#check_mode(winnr())
|
||||
endfunction
|
||||
|
|
Loading…
Reference in New Issue