Merge pull request #1523 from rlue/hotfix

Hotfix: Autoswitch theme for colorschemes with funny casing (like PaperColor)
This commit is contained in:
Christian Brabandt 2017-08-07 07:46:19 +02:00 committed by GitHub
commit 4e24036782

View File

@ -76,7 +76,7 @@ endfunction
function! airline#switch_matching_theme()
if exists('g:colors_name')
let existing = g:airline_theme
let theme = substitute(g:colors_name, '-', '_', 'g')
let theme = substitute(tolower(g:colors_name), '-', '_', 'g')
try
let palette = g:airline#themes#{theme}#palette
call airline#switch_theme(theme)