From 65cf9e09ad9db4e1d773a54318fdc49374fa923c Mon Sep 17 00:00:00 2001 From: Peter Odding Date: Sun, 19 May 2013 23:33:53 +0200 Subject: Bug fix for xolox#misc#option#eval_tags() option --- autoload/xolox/misc/option.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'autoload') diff --git a/autoload/xolox/misc/option.vim b/autoload/xolox/misc/option.vim index efaf1bc..2912967 100644 --- a/autoload/xolox/misc/option.vim +++ b/autoload/xolox/misc/option.vim @@ -58,7 +58,7 @@ endfunction function! xolox#misc#option#eval_tags(value, ...) let pathnames = [] - let first_only = exists('a:1') && a:1 + let first_only = exists('a:1') ? a:1 : 0 for pattern in xolox#misc#option#split_tags(a:value) " Make buffer relative pathnames absolute. if pattern =~ '^\./' @@ -78,7 +78,7 @@ function! xolox#misc#option#eval_tags(value, ...) return pathnames[0] endif endfor - return firstonly ? '' : pathnames + return first_only ? '' : pathnames endfunction " vim: ts=2 sw=2 et -- cgit v1.2.3