From 29c556dba4e971ee9e667d5153d1ec464b77a030 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Mon, 26 Sep 2016 11:33:25 +0200 Subject: [PATCH] use correct groupname for inactive windows airline_c (which contains the filename) usually is used together with the buffer number, so that several windows showing the a different buffer do not share the same highlighting group. This was fixed in 73aea86a, but unfortunately it was forgotten to not only add this to the current group, but also modify the previous group accordingly. This is what this patch does. fixes #1268 --- autoload/airline/builder.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autoload/airline/builder.vim b/autoload/airline/builder.vim index ad9029af..4da6a099 100644 --- a/autoload/airline/builder.vim +++ b/autoload/airline/builder.vim @@ -49,6 +49,8 @@ function! s:prototype.build() let prev_group = s:get_prev_group(self._sections, i) if group ==# 'airline_c' && !self._context.active && has_key(self._context, 'bufnr') let group = 'airline_c'. self._context.bufnr + elseif prev_group ==# 'airline_c' && !self._context.active && has_key(self._context, 'bufnr') + let prev_group = 'airline_c'. self._context.bufnr endif if is_empty let prev_group = pgroup