From 464633baadad1da53528ad8988e6761ab6cf6394 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Tue, 13 Nov 2018 21:17:48 +0100 Subject: [PATCH] themes: Do not try to load the palette twice This will be done explicitly by the switch_theme() function --- autoload/airline.vim | 2 -- 1 file changed, 2 deletions(-) diff --git a/autoload/airline.vim b/autoload/airline.vim index f6ce22b..ae1e3d4 100644 --- a/autoload/airline.vim +++ b/autoload/airline.vim @@ -86,14 +86,12 @@ function! airline#switch_matching_theme() let existing = g:airline_theme let theme = substitute(tolower(g:colors_name), '-', '_', 'g') try - let palette = g:airline#themes#{theme}#palette call airline#switch_theme(theme) return 1 catch for map in items(g:airline_theme_map) if match(g:colors_name, map[0]) > -1 try - let palette = g:airline#themes#{map[1]}#palette call airline#switch_theme(map[1]) catch call airline#switch_theme(existing)