mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-24 14:59:55 +08:00
Merge pull request #976 from tuopen/master
Fix issue when an airline theme and an external colorscheme have been defined
This commit is contained in:
commit
31730c6ec8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user