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
1 changed files with 4 additions and 0 deletions

View File

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