minor improvement

This commit is contained in:
gmarik 2011-08-06 00:06:51 -05:00
parent eb9dfefe87
commit f95998e5f1

View File

@ -132,12 +132,11 @@ func! s:sync(bang, bundle) abort
endf endf
func! s:system(cmd) abort func! s:system(cmd) abort
let output = system(a:cmd) return s:log(system(a:cmd))
call s:log(output)
return output
endf endf
func! s:log(str) abort func! s:log(str) abort
if !exists('g:vundle_log') | let g:vundle_log = [] | endif if !exists('g:vundle_log') | let g:vundle_log = [] | endif
call add(g:vundle_log, a:str) call add(g:vundle_log, a:str)
return a:str
endf endf