mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-28 03:33:20 +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 g:airline_theme = 'dark'
|
||||||
let s:airline_theme_defined = 1
|
let s:airline_theme_defined = 1
|
||||||
endif
|
endif
|
||||||
if !airline#switch_matching_theme()
|
if s:airline_theme_defined || !airline#switch_matching_theme()
|
||||||
try
|
try
|
||||||
let palette = g:airline#themes#{g:airline_theme}#palette
|
let palette = g:airline#themes#{g:airline_theme}#palette
|
||||||
catch
|
catch
|
||||||
|
|
Loading…
Reference in New Issue
Block a user