selectively disable airline for selected windows

(make it work with Vim 7.3)
This commit is contained in:
Christian Brabandt
2015-01-23 20:32:49 +01:00
parent 13ee9f456a
commit 3acea37fdc
2 changed files with 9 additions and 0 deletions

View File

@@ -89,6 +89,10 @@ endfunction
function! airline#update_statusline()
for nr in filter(range(1, winnr('$')), 'v:val != winnr()')
if !empty(getwinvar(nr, 'airline_disabled')) &&
\ getwinvar(nr, 'airline_disabled')
continue
endif
call setwinvar(nr, 'airline_active', 0)
let context = { 'winnr': nr, 'active': 0, 'bufnr': winbufnr(nr) }
call s:invoke_funcrefs(context, s:inactive_funcrefs)