Merge pull request #1523 from rlue/hotfix
Hotfix: Autoswitch theme for colorschemes with funny casing (like PaperColor)
This commit is contained in:
commit
4e24036782
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user