Move AirlineAfterTheme to load_theme()

So it gets called when colorscheme changes.
This commit is contained in:
Rick Jones 2021-03-21 11:19:08 +00:00
parent cb1bc19064
commit 3d7dfa8ef6
1 changed files with 2 additions and 2 deletions

View File

@ -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