plugin: correctly re-init on :syn-enable

should fix #1590 correctly
This commit is contained in:
Christian Brabandt 2018-01-04 21:09:26 +01:00
parent d283a25e3f
commit 4d0233ebdb
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
1 changed files with 1 additions and 1 deletions

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 *nosyntax.vim call <sid>airline_refresh()
autocmd SourcePre *syntax.vim call <sid>airline_refresh()
autocmd VimEnter,WinEnter,BufWinEnter,FileType,BufUnload *
\ call <sid>on_window_changed()
if exists('#CompleteDone')