tabline: fix tabline on :syn on
better solution for #1590. Previous solution refreshes airline completely which is much slower.
This commit is contained in:
parent
e02176aca1
commit
8c1a7a5343
@ -96,7 +96,8 @@ function! s:airline_toggle()
|
|||||||
|
|
||||||
autocmd GUIEnter,ColorScheme * call <sid>on_colorscheme_changed()
|
autocmd GUIEnter,ColorScheme * call <sid>on_colorscheme_changed()
|
||||||
" Refresh airline for :syntax off
|
" 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 *
|
autocmd VimEnter,WinEnter,BufWinEnter,FileType,BufUnload *
|
||||||
\ call <sid>on_window_changed()
|
\ call <sid>on_window_changed()
|
||||||
if exists('#CompleteDone')
|
if exists('#CompleteDone')
|
||||||
|
Loading…
Reference in New Issue
Block a user