소스 검색

Strip trailing whitespaces in PlugDiff output

Junegunn Choi 10 년 전
부모
커밋
6246ad284c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      plug.vim

+ 1 - 1
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: [^,)]\+')