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,8 +89,7 @@ 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')
if airline#util#getwinvar(nr, 'airline_disabled', 0)
continue
endif
call setwinvar(nr, 'airline_active', 0)