Improved log message

This commit is contained in:
gmarik 2011-07-15 00:53:19 -05:00
parent f84b02e635
commit 46d6ac3dfb

View File

@ -9,9 +9,11 @@ func! vundle#installer#install(bang, ...) abort
" TODO: handle error: let user know hen they need to restart Vim " TODO: handle error: let user know hen they need to restart Vim
call vundle#config#require(bundles) call vundle#config#require(bundles)
call s:log("Installed bundles:\n".join((empty(installed) ? let msg = 'No new bundles were installed'
\ ['no new bundles installed'] : if (!empty(installed))
\ map(installed, 'v:val.name')),"\n")) let msg = "Installed bundles:\n".join(map(installed, 'v:val.name'),"\n")
endif
call s:log(msg)
call vundle#installer#helptags(bundles) call vundle#installer#helptags(bundles)
endf endf
@ -21,7 +23,7 @@ func! vundle#installer#helptags(bundles) abort
let help_dirs = filter(bundle_dirs, 's:has_doc(v:val)') let help_dirs = filter(bundle_dirs, 's:has_doc(v:val)')
call map(copy(help_dirs), 's:helptags(v:val)') call map(copy(help_dirs), 's:helptags(v:val)')
if !empty(help_dirs) if !empty(help_dirs)
call s:log('Helptags: done. '.len(help_dirs).' bundles processed') call s:log('Helptags: '.len(help_dirs).' bundles processed')
endif endif
return help_dirs return help_dirs
endf endf