mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2026-05-19 23:09:35 +08:00
pass arguments into funcrefs properly.
This commit is contained in:
@@ -15,7 +15,7 @@ endif
|
|||||||
if v:version >= 704
|
if v:version >= 704
|
||||||
function! airline#util#exec_funcrefs(list, ...)
|
function! airline#util#exec_funcrefs(list, ...)
|
||||||
for Fn in a:list
|
for Fn in a:list
|
||||||
let code = Fn(a:000)
|
let code = call(Fn, a:000)
|
||||||
if code != 0
|
if code != 0
|
||||||
return code
|
return code
|
||||||
endif
|
endif
|
||||||
@@ -28,7 +28,7 @@ else
|
|||||||
" 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]
|
||||||
let code = Fn{i}(a:000)
|
let code = call(Fn{i}, a:000)
|
||||||
if code != 0
|
if code != 0
|
||||||
return code
|
return code
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user