Fix issue when an airline theme and an external colorscheme have been defined

This commit is contained in:
Tuomas Penttilä 2016-01-30 21:35:14 +02:00
parent c88f04cd1a
commit 905522cd8b

View File

@ -21,7 +21,7 @@ function! s:init()
let g:airline_theme = 'dark'
let s:airline_theme_defined = 1
endif
if !airline#switch_matching_theme()
if s:airline_theme_defined || !airline#switch_matching_theme()
try
let palette = g:airline#themes#{g:airline_theme}#palette
catch