tabline: correctly refresh on :syn commands

fixes #1590 and #1638
This commit is contained in:
Christian Brabandt 2018-01-10 08:41:04 +01:00
parent a3bdb10aea
commit b7d3feb4d2
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

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