Browse Source

Improved log message

pull/63/head
gmarik 15 years ago
parent
commit
46d6ac3dfb
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      autoload/vundle/installer.vim

+ 6
- 4
autoload/vundle/installer.vim 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) ?
\ ['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) 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


Loading…
Cancel
Save