Prior checking user defined theme

This commit is contained in:
mattn 2013-08-20 10:46:44 +09:00
parent dd5dbdd242
commit 715cf33d56
1 changed files with 1 additions and 1 deletions

View File

@ -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