mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-06 20:24:27 +08:00
Move AirlineAfterTheme to load_theme()
So it gets called when colorscheme changes.
This commit is contained in:
@@ -53,6 +53,8 @@ function! airline#load_theme()
|
|||||||
call airline#highlighter#load_theme()
|
call airline#highlighter#load_theme()
|
||||||
call airline#extensions#load_theme()
|
call airline#extensions#load_theme()
|
||||||
call airline#update_statusline()
|
call airline#update_statusline()
|
||||||
|
|
||||||
|
call airline#util#doautocmd('AirlineAfterTheme')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Load an airline theme
|
" Load an airline theme
|
||||||
@@ -93,8 +95,6 @@ function! airline#switch_theme(name, ...)
|
|||||||
unlet! w:airline_lastmode
|
unlet! w:airline_lastmode
|
||||||
call airline#load_theme()
|
call airline#load_theme()
|
||||||
|
|
||||||
call airline#util#doautocmd('AirlineAfterTheme')
|
|
||||||
|
|
||||||
" this is required to prevent clobbering the startup info message, i don't know why...
|
" this is required to prevent clobbering the startup info message, i don't know why...
|
||||||
call airline#check_mode(winnr())
|
call airline#check_mode(winnr())
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user