Merge pull request #2356 from nomasprime/move-airlineaftertheme-autocmd-to-load-theme

Move AirlineAfterTheme to load_theme()
This commit is contained in:
Christian Brabandt
2021-03-27 17:14:20 +01:00
committed by GitHub

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