From dcade75133cbf493ba140c1e7f30be681b992fd8 Mon Sep 17 00:00:00 2001 From: gmarik Date: Thu, 10 Mar 2011 22:39:31 -0600 Subject: [PATCH] fixed bug - map modifies source collection - arrays are passed by reference - resulted in remapping g:bundles into list or directories --- autoload/vundle/installer.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index fda2985..24ce090 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -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