Skip to content

Commit

Permalink
Merge pull request #671 from nfischer/WhiteSpace
Browse files Browse the repository at this point in the history
Trim trailing whitespace in VundleLog
  • Loading branch information
ryanoasis committed Apr 22, 2016
2 parents 4984767 + 5a59dd7 commit b4328e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion autoload/vundle/installer.vim
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,11 @@ func! s:log(str, ...) abort
let fmt = '%Y-%m-%d %H:%M:%S'
let lines = split(a:str, '\n', 1)
let time = strftime(fmt)
let entry_prefix = '['. time .'] '. prefix
for line in lines
call add(g:vundle#log, '['. time .'] '. prefix . line)
" Trim trailing whitespace
let entry = substitute(entry_prefix . line, '\m\s\+$', '', '')
call add(g:vundle#log, entry)
endfor
return a:str
endf
Expand Down

0 comments on commit b4328e2

Please sign in to comment.