mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-23 10:36:01 +08:00
fix regression, allow statusline funcrefs to execute
This commit is contained in:
parent
238ab44489
commit
0758e2a88c
|
@ -109,8 +109,12 @@ function! s:exec_funcrefs(list, break_early)
|
||||||
" for 7.3-[97, 328]; we cannot reuse the variable, hence the {}
|
" for 7.3-[97, 328]; we cannot reuse the variable, hence the {}
|
||||||
for i in range(0, len(a:list) - 1)
|
for i in range(0, len(a:list) - 1)
|
||||||
let Fn{i} = a:list[i]
|
let Fn{i} = a:list[i]
|
||||||
if Fn{i}() && a:break_early
|
if a:break_early
|
||||||
return 1
|
if Fn{i}()
|
||||||
|
return 1
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
call Fn{i}()
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user