From 905522cd8b87855637824997c123a14d6b83beef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tuomas=20Penttil=C3=A4?= Date: Sat, 30 Jan 2016 21:35:14 +0200 Subject: [PATCH] Fix issue when an airline theme and an external colorscheme have been defined --- plugin/airline.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/airline.vim b/plugin/airline.vim index d1833577..de28d647 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -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