From c76019ac9ed1d006db939ca6db229b7fa28f104d Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Thu, 4 Jan 2018 23:54:12 +0100 Subject: [PATCH] Safety: Make sure g:airline_theme is defined before using it fixes #1624 --- autoload/airline.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/airline.vim b/autoload/airline.vim index ad9fcea3..35439936 100644 --- a/autoload/airline.vim +++ b/autoload/airline.vim @@ -34,6 +34,7 @@ function! airline#add_inactive_statusline_func(name) endfunction function! airline#load_theme() + let g:airline_theme = get(g:, 'airline_theme', 'dark') if exists('*airline#themes#{g:airline_theme}#refresh') call airline#themes#{g:airline_theme}#refresh() endif