delete buffer if it loaded

- to avod error when deleting nonexisting buffer
This commit is contained in:
gmarik 2011-08-20 19:53:34 -05:00
parent e1e2c64caa
commit 06480ede43

View File

@ -38,7 +38,7 @@ func vundle#scripts#bundle_names(names)
endf endf
func! vundle#scripts#view(title, headers, results) 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!' exec g:vundle_view.'bd!'
endif endif