Only reset to Normal highlighting if it is actually defined

closes #1415 and similar
This commit is contained in:
Christian Brabandt
2017-02-28 08:33:44 +01:00
parent ac9e4092ef
commit 52663545a9
2 changed files with 14 additions and 3 deletions

View File

@@ -53,6 +53,7 @@ endfunction
function! s:on_colorscheme_changed()
call s:init()
unlet! g:airline#highlighter#normal_fg_hi
let g:airline_gui_mode = airline#init#gui_mode()
if !s:theme_in_vimrc
call airline#switch_matching_theme()