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.
This commit is contained in:
Christian Brabandt 2018-11-12 05:18:53 +01:00
parent f3d6a3542a
commit 6c6c6c104f
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
1 changed files with 3 additions and 0 deletions

View File

@ -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)