terminal: do not reset airline theme on TerminalOpen

remove autocommand, that would overwrite the airline theme on :term

(e.g. After a :AirlineTheme monochrome and then using `:term` the
autocommand would reset the theme back to the one given in the .vimrc)
This commit is contained in:
Christian Brabandt 2018-11-13 21:58:54 +01:00
parent cd0b15b195
commit 49671d0a11
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -102,9 +102,6 @@ function! s:airline_toggle()
" Make sure that g_airline_gui_mode is refreshed
autocmd OptionSet termguicolors call <sid>on_colorscheme_changed()
endif
if exists("##TerminalOpen")
autocmd TerminalOpen * call <sid>on_colorscheme_changed()
endif
" Set all statuslines to inactive
autocmd FocusLost * call airline#update_statusline_focuslost()
" Refresh airline for :syntax off