Merge pull request #1271 from chrisbra/highlighter_bug

Use the correct highlighting for the inactive window
This commit is contained in:
Christian Brabandt 2016-09-26 21:13:02 +02:00 committed by GitHub
commit 1c052e39b1

View File

@ -51,6 +51,8 @@ function! s:prototype.build()
let prev_group = s:get_prev_group(self._sections, i) let prev_group = s:get_prev_group(self._sections, i)
if group ==# 'airline_c' && !self._context.active && has_key(self._context, 'bufnr') if group ==# 'airline_c' && !self._context.active && has_key(self._context, 'bufnr')
let group = 'airline_c'. 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 endif
if is_empty if is_empty
let prev_group = pgroup let prev_group = pgroup