From cfd373a5a228dfbf6438d186e3a3cb5f695e006b Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Tue, 13 Nov 2018 13:43:55 +0100 Subject: [PATCH] highlighter: Better check, when to skip groups Groupnames like 'airline_c1_to_airline_x_inactive' still have to be processed, so do not skip them. Also for the tabline, '_inactive' groups are not used, so skip them --- autoload/airline/highlighter.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/autoload/airline/highlighter.vim b/autoload/airline/highlighter.vim index 5d7ce04..0843e2d 100644 --- a/autoload/airline/highlighter.vim +++ b/autoload/airline/highlighter.vim @@ -271,8 +271,12 @@ function! airline#highlighter#highlight(modes, ...) if bnr > 0 && index(buffers_in_tabpage, bnr) == -1 continue endif - elseif name =~# '_to_' + elseif (empty(suffix) && name =~# '_to_') || + \ (name[0:10] is# 'airline_tab' && !empty(suffix)) " group will be redefined below at exec_separator + " (except for _inactive groups) + " or is not needed for tabline with '_inactive' suffix + " since active flag is 1 for builder) continue endif if s:group_not_done(airline_grouplist, name.suffix)