mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2024-12-04 16:03:34 +08:00
loop differently so it works in 7.2
This commit is contained in:
parent
406fb2164d
commit
10fa73996b
|
@ -105,8 +105,8 @@ function! s:get_statusline(winnr, active)
|
|||
endfunction
|
||||
|
||||
function! airline#update_statusline()
|
||||
for Fn in g:airline_exclude_funcrefs
|
||||
if Fn()
|
||||
for i in range(0, len(g:airline_exclude_funcrefs) - 1)
|
||||
if g:airline_exclude_funcrefs[i]()
|
||||
call setwinvar(winnr(), '&statusline', '')
|
||||
return
|
||||
endif
|
||||
|
@ -116,8 +116,8 @@ function! airline#update_statusline()
|
|||
for section in s:sections
|
||||
unlet! w:airline_section_{section}
|
||||
endfor
|
||||
for Fn in g:airline_statusline_funcrefs
|
||||
call Fn()
|
||||
for i in range(0, len(g:airline_statusline_funcrefs) - 1)
|
||||
call g:airline_statusline_funcrefs[i]()
|
||||
endfor
|
||||
|
||||
let w:airline_active = 1
|
||||
|
|
Loading…
Reference in New Issue
Block a user