use util getwinvar helper function
This commit is contained in:
parent
b55b526c65
commit
462ee313e7
|
@ -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) }
|
||||||
|
|
Loading…
Reference in New Issue