From c66519076d954e8c736ceaf24c8b07b87531c41a Mon Sep 17 00:00:00 2001 From: gmarik Date: Thu, 11 Aug 2011 23:56:41 -0500 Subject: [PATCH] clone results so id doesnt get modified inplace --- autoload/vundle/scripts.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vundle/scripts.vim b/autoload/vundle/scripts.vim index 3630fdd..1494dc6 100644 --- a/autoload/vundle/scripts.vim +++ b/autoload/vundle/scripts.vim @@ -60,7 +60,7 @@ func! vundle#scripts#view(title, headers, results) exec g:vundle_view.'bd!' endif - let results = map(a:results, ' printf("Bundle ' ."'%s'".'", v:val) ') + let results = map(copy(a:results), ' printf("Bundle ' ."'%s'".'", v:val) ') exec 'silent pedit [Vundle] '.a:title wincmd P | wincmd H