mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-06 12:14:24 +08:00
upgrade all funcrefs to support varargs.
This commit is contained in:
@@ -13,7 +13,7 @@ else
|
||||
endif
|
||||
|
||||
if v:version >= 704
|
||||
function! airline#util#exec_funcrefs(list, break_early)
|
||||
function! airline#util#exec_funcrefs(list, break_early, ...)
|
||||
for Fn in a:list
|
||||
if a:break_early
|
||||
if Fn()
|
||||
@@ -25,7 +25,7 @@ if v:version >= 704
|
||||
endfor
|
||||
endfunction
|
||||
else
|
||||
function! airline#util#exec_funcrefs(list, break_early)
|
||||
function! airline#util#exec_funcrefs(list, break_early, ...)
|
||||
" for 7.2; we cannot iterate the list, hence why we use range()
|
||||
" for 7.3-[97, 328]; we cannot reuse the variable, hence the {}
|
||||
for i in range(0, len(a:list) - 1)
|
||||
|
||||
Reference in New Issue
Block a user