From f1574c4e0aeb56bcbefe2e38892c6e97e3fd612c Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Mon, 20 Feb 2017 21:08:38 +0100 Subject: [PATCH] define highlighting group, if it not exists previously, it could have been skipped, if the old highlighting attribute was the same as the current one. However, if the group does not exist, it should still be defined closes #1404 --- autoload/airline/highlighter.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/highlighter.vim b/autoload/airline/highlighter.vim index 6af3207..e4e83e8 100644 --- a/autoload/airline/highlighter.vim +++ b/autoload/airline/highlighter.vim @@ -73,7 +73,7 @@ function! airline#highlighter#exec(group, colors) call add(colors, '') endif let colors = s:CheckDefined(colors) - if old_hi != colors + if old_hi != colors || !hlexists(a:group) let cmd = printf('hi %s %s %s %s %s %s %s %s', \ a:group, s:Get(colors, 0, 'guifg=', ''), s:Get(colors, 1, 'guibg=', ''), \ s:Get(colors, 2, 'ctermfg=', ''), s:Get(colors, 3, 'ctermbg=', ''),