fixed bug

- map modifies source collection
- arrays are passed by reference
- resulted in remapping g:bundles into list or directories
This commit is contained in:
gmarik 2011-03-10 22:39:31 -06:00
parent f99ca2e5ac
commit dcade75133

View File

@ -8,7 +8,7 @@ func! vundle#installer#install(bang, ...)
endf
func! vundle#installer#helptags(bundles)
let bundle_dirs = map(a:bundles,'v:val.rtpath()')
let bundle_dirs = map(copy(a:bundles),'v:val.rtpath()')
let help_dirs = filter(bundle_dirs, 's:has_doc(v:val)')
call map(copy(help_dirs), 's:helptags(v:val)')
if len(help_dirs) > 0