plugin: reset syntax highlighting on :syn off

hopefully fixes #1590
This commit is contained in:
Christian Brabandt 2018-01-04 20:07:15 +01:00
parent c518f79aab
commit 133a76d2d4
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -95,6 +95,8 @@ function! s:airline_toggle()
autocmd CmdwinLeave * call airline#remove_statusline_func('airline#cmdwinenter') autocmd CmdwinLeave * call airline#remove_statusline_func('airline#cmdwinenter')
autocmd GUIEnter,ColorScheme * call <sid>on_colorscheme_changed() autocmd GUIEnter,ColorScheme * call <sid>on_colorscheme_changed()
" Refresh airline for :syntax off
autocmd SourcePre *nosyntax.vim call <sid>airline_refresh()
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')