From 6c6c6c104fd0addbeec59f7e2745845ac8a420c9 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Mon, 12 Nov 2018 05:18:53 +0100 Subject: [PATCH] highlighter: exec_separator will re-create '_to_' groups so we don't need to re-create them in the main for loop of airline#highlighter#highlight() and so skip those groups. --- autoload/airline/highlighter.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/airline/highlighter.vim b/autoload/airline/highlighter.vim index d7f0187..6f1cd94 100644 --- a/autoload/airline/highlighter.vim +++ b/autoload/airline/highlighter.vim @@ -259,6 +259,9 @@ function! airline#highlighter#highlight(modes, ...) if bnr > 0 && index(buffers_in_tabpage, bnr) == -1 continue endif + elseif name =~# '_to_' + " group will be redefined below at exec_separator + continue endif if s:group_not_done(airline_grouplist, name.suffix) call airline#highlighter#exec(name.suffix, mode_colors)