tabline: properly refresh with ModeChanged autocommand

closes #2539
This commit is contained in:
Christian Brabandt 2022-07-12 21:48:06 +02:00
parent e4f586b76b
commit b5f2eb418a
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -172,6 +172,10 @@ function! s:airline_toggle()
" Force update of tabline more often " Force update of tabline more often
autocmd InsertEnter,InsertLeave,CursorMovedI * :call airline#update_tabline() autocmd InsertEnter,InsertLeave,CursorMovedI * :call airline#update_tabline()
endif endif
if exists("##ModeChanged")
autocmd ModeChanged * :call airline#update_tabline()
endif
augroup END augroup END
if !airline#util#stl_disabled(winnr()) if !airline#util#stl_disabled(winnr())