mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2025-01-19 15:02:46 +08:00
fix statusline out of sync right after colorscheme change
This commit is contained in:
parent
b6e29a8cfb
commit
36bc297e60
|
@ -46,6 +46,7 @@ function! airline#load_theme()
|
|||
|
||||
call airline#highlighter#load_theme()
|
||||
call airline#extensions#load_theme()
|
||||
call airline#update_statusline()
|
||||
endfunction
|
||||
|
||||
function! airline#switch_theme(name)
|
||||
|
@ -62,7 +63,6 @@ function! airline#switch_theme(name)
|
|||
endtry
|
||||
|
||||
let w:airline_lastmode = ''
|
||||
call airline#update_statusline()
|
||||
call airline#load_theme()
|
||||
|
||||
" this is required to prevent clobbering the startup info message, i don't know why...
|
||||
|
|
Loading…
Reference in New Issue
Block a user