From 40d78f07dee2ffab68abb9d6d1a9e27843df0fe0 Mon Sep 17 00:00:00 2001 From: Teo Ljungberg Date: Wed, 4 Apr 2018 21:03:56 +0200 Subject: [PATCH] Strip out carriage returns --- plugin/fugitive.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index c9a5ed7..d543dd3 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -2728,6 +2728,7 @@ function! s:BufReadObject() abort if lnum silent keepjumps delete_ end + silent keepjumps 1,/^diff --git\|\%$/g/\r$/s/// keepjumps 1 endif elseif b:fugitive_type ==# 'blob'