From 039fd6b50f3e45fc02aad7968346380baf584125 Mon Sep 17 00:00:00 2001 From: Ryan Lue Date: Mon, 7 Aug 2017 12:42:22 +0800 Subject: [PATCH] Fix airline#switch_matching_theme() to accommodate camelcased colorscheme names --- autoload/airline.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline.vim b/autoload/airline.vim index d6bf8ed..2c16bfa 100644 --- a/autoload/airline.vim +++ b/autoload/airline.vim @@ -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)