From c16d6e69a99cdc9663ffa0a28f593057012b8801 Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Thu, 22 Aug 2013 20:22:54 +0000 Subject: [PATCH] pass arguments into funcrefs properly. --- autoload/airline/util.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/airline/util.vim b/autoload/airline/util.vim index 10fb6ac..3581698 100644 --- a/autoload/airline/util.vim +++ b/autoload/airline/util.vim @@ -15,7 +15,7 @@ endif if v:version >= 704 function! airline#util#exec_funcrefs(list, ...) for Fn in a:list - let code = Fn(a:000) + let code = call(Fn, a:000) if code != 0 return code endif @@ -28,7 +28,7 @@ else " for 7.3-[97, 328]; we cannot reuse the variable, hence the {} for i in range(0, len(a:list) - 1) let Fn{i} = a:list[i] - let code = Fn{i}(a:000) + let code = call(Fn{i}, a:000) if code != 0 return code endif