diff options
author | Peter Odding <peter@peterodding.com> | 2013-05-19 23:33:53 +0200 |
---|---|---|
committer | Peter Odding <peter@peterodding.com> | 2013-05-19 23:33:53 +0200 |
commit | 65cf9e09ad9db4e1d773a54318fdc49374fa923c (patch) | |
tree | ffe4c60914531d51bcf82092ed221230eb22ad6e /autoload/xolox | |
parent | ee4c247df124b38b478f8ca0f19d78fdc95ca042 (diff) | |
download | vim-easytags-65cf9e09ad9db4e1d773a54318fdc49374fa923c.tar.gz |
Bug fix for xolox#misc#option#eval_tags() option
Diffstat (limited to 'autoload/xolox')
-rw-r--r-- | autoload/xolox/misc/option.vim | 4 |
1 files changed, 2 insertions, 2 deletions
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 |