From 6246ad284c2fbe9e9adc1be3268b22ae327b1c54 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 3 Mar 2016 02:14:44 +0900 Subject: [PATCH] Strip trailing whitespaces in PlugDiff output --- plug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index 4b21b32..ae8e599 100644 --- a/plug.vim +++ b/plug.vim @@ -2036,7 +2036,7 @@ function! s:format_git_log(line) let indent = ' ' let tokens = split(a:line, nr2char(1)) if len(tokens) != 5 - return indent.a:line + return indent.substitute(a:line, '\s*$', '', '') endif let [graph, sha, refs, subject, date] = tokens let tag = matchstr(refs, 'tag: [^,)]\+')