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
1 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,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