From 46d6ac3dfbbd739bd9b3975b476e27d8f13e0d01 Mon Sep 17 00:00:00 2001 From: gmarik Date: Fri, 15 Jul 2011 00:53:19 -0500 Subject: [PATCH] Improved log message --- autoload/vundle/installer.vim | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index e0b8ee2..4fdb225 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -9,9 +9,11 @@ func! vundle#installer#install(bang, ...) abort " TODO: handle error: let user know hen they need to restart Vim call vundle#config#require(bundles) - call s:log("Installed bundles:\n".join((empty(installed) ? - \ ['no new bundles installed'] : - \ map(installed, 'v:val.name')),"\n")) + let msg = 'No new bundles were installed' + if (!empty(installed)) + let msg = "Installed bundles:\n".join(map(installed, 'v:val.name'),"\n") + endif + call s:log(msg) call vundle#installer#helptags(bundles) endf @@ -21,7 +23,7 @@ func! vundle#installer#helptags(bundles) abort let help_dirs = filter(bundle_dirs, 's:has_doc(v:val)') call map(copy(help_dirs), 's:helptags(v:val)') if !empty(help_dirs) - call s:log('Helptags: done. '.len(help_dirs).' bundles processed') + call s:log('Helptags: '.len(help_dirs).' bundles processed') endif return help_dirs endf