tabline: fix tabline on :syn on

better solution for #1590. Previous solution refreshes airline
completely which is much slower.
This commit is contained in:
Sheheryar Parvaz 2018-01-20 23:27:32 -05:00
parent e02176aca1
commit 8c1a7a5343
1 changed files with 2 additions and 1 deletions

View File

@ -96,7 +96,8 @@ function! s:airline_toggle()
autocmd GUIEnter,ColorScheme * call <sid>on_colorscheme_changed()
" Refresh airline for :syntax off
autocmd SourcePre */syntax/*syntax.vim call <sid>airline_refresh()
autocmd SourcePre */syntax/syntax.vim
\ call airline#extensions#tabline#buffers#invalidate()
autocmd VimEnter,WinEnter,BufWinEnter,FileType,BufUnload *
\ call <sid>on_window_changed()
if exists('#CompleteDone')