From 0758e2a88c11357c7fcc2bf0413fe61fa802fc9b Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Mon, 5 Aug 2013 20:31:10 +0000 Subject: [PATCH] fix regression, allow statusline funcrefs to execute --- autoload/airline.vim | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/autoload/airline.vim b/autoload/airline.vim index b6a0c3ec..52d2522a 100644 --- a/autoload/airline.vim +++ b/autoload/airline.vim @@ -109,8 +109,12 @@ function! s:exec_funcrefs(list, break_early) " 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] - if Fn{i}() && a:break_early - return 1 + if a:break_early + if Fn{i}() + return 1 + endif + else + call Fn{i}() endif endfor return 0