use util getwinvar helper function

This commit is contained in:
Bailey Ling 2015-01-31 12:38:46 -05:00
parent b55b526c65
commit 462ee313e7
1 changed files with 2 additions and 3 deletions

View File

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