From 715cf33d56297f0804b2af6f5a41063b685fe386 Mon Sep 17 00:00:00 2001 From: mattn Date: Tue, 20 Aug 2013 10:46:44 +0900 Subject: [PATCH] Prior checking user defined theme --- plugin/airline.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/airline.vim b/plugin/airline.vim index b47653a0..0c02562e 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -76,7 +76,7 @@ function! s:init() call airline#extensions#load() let s:airline_theme_defined = exists('g:airline_theme') - if !airline#switch_matching_theme() + if s:airline_theme_defined || !airline#switch_matching_theme() let g:airline_theme = get(g:, 'airline_theme', 'dark') call airline#switch_theme(g:airline_theme) endif