mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-19 18:47:29 -07:00
Strip trailing whitespaces in PlugDiff output
This commit is contained in:
parent
c06d222480
commit
6246ad284c
2
plug.vim
2
plug.vim
@ -2036,7 +2036,7 @@ function! s:format_git_log(line)
|
|||||||
let indent = ' '
|
let indent = ' '
|
||||||
let tokens = split(a:line, nr2char(1))
|
let tokens = split(a:line, nr2char(1))
|
||||||
if len(tokens) != 5
|
if len(tokens) != 5
|
||||||
return indent.a:line
|
return indent.substitute(a:line, '\s*$', '', '')
|
||||||
endif
|
endif
|
||||||
let [graph, sha, refs, subject, date] = tokens
|
let [graph, sha, refs, subject, date] = tokens
|
||||||
let tag = matchstr(refs, 'tag: [^,)]\+')
|
let tag = matchstr(refs, 'tag: [^,)]\+')
|
||||||
|
Loading…
Reference in New Issue
Block a user