From 8c1a7a53431b2bb11f3ddf6b6b9bac77fa0608e7 Mon Sep 17 00:00:00 2001 From: Sheheryar Parvaz Date: Sat, 20 Jan 2018 23:27:32 -0500 Subject: [PATCH] tabline: fix tabline on :syn on better solution for #1590. Previous solution refreshes airline completely which is much slower. --- plugin/airline.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/airline.vim b/plugin/airline.vim index 91e8e5f0..16352530 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -96,7 +96,8 @@ function! s:airline_toggle() autocmd GUIEnter,ColorScheme * call on_colorscheme_changed() " Refresh airline for :syntax off - autocmd SourcePre */syntax/*syntax.vim call airline_refresh() + autocmd SourcePre */syntax/syntax.vim + \ call airline#extensions#tabline#buffers#invalidate() autocmd VimEnter,WinEnter,BufWinEnter,FileType,BufUnload * \ call on_window_changed() if exists('#CompleteDone')