Browse Source

Trim trailing whitespace at logging time

pull/671/head
Nate Fischer 10 years ago
parent
commit
72da8f8fce
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      autoload/vundle/installer.vim

+ 4
- 1
autoload/vundle/installer.vim View File

@ -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


Loading…
Cancel
Save