From 06480ede43ca028f747f970f0c1a50b12b515090 Mon Sep 17 00:00:00 2001 From: gmarik Date: Sat, 20 Aug 2011 19:53:34 -0500 Subject: [PATCH] delete buffer if it loaded - to avod error when deleting nonexisting buffer --- 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 0200a03..76a73f5 100644 --- a/autoload/vundle/scripts.vim +++ b/autoload/vundle/scripts.vim @@ -38,7 +38,7 @@ func vundle#scripts#bundle_names(names) endf func! vundle#scripts#view(title, headers, results) - if exists('g:vundle_view') + if exists('g:vundle_view') && bufloaded(g:vundle_view) exec g:vundle_view.'bd!' endif