Skip to content

Commit b4328e2

Browse files
committed
Merge pull request #671 from nfischer/WhiteSpace
Trim trailing whitespace in VundleLog
2 parents 4984767 + 5a59dd7 commit b4328e2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

autoload/vundle/installer.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,8 +527,11 @@ func! s:log(str, ...) abort
527527
let fmt = '%Y-%m-%d %H:%M:%S'
528528
let lines = split(a:str, '\n', 1)
529529
let time = strftime(fmt)
530+
let entry_prefix = '['. time .'] '. prefix
530531
for line in lines
531-
call add(g:vundle#log, '['. time .'] '. prefix . line)
532+
" Trim trailing whitespace
533+
let entry = substitute(entry_prefix . line, '\m\s\+$', '', '')
534+
call add(g:vundle#log, entry)
532535
endfor
533536
return a:str
534537
endf

0 commit comments

Comments
 (0)