From a099a2631c9061fa773c4045f34fb37f426f96ae Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 1 Dec 2021 19:27:29 -0500 Subject: [PATCH] Disable diff.suppressBlankEmpty for summary window diff Resolves: https://github.com/tpope/vim-fugitive/issues/1897 --- autoload/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index e1625d9..b3909bf 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2716,11 +2716,11 @@ function! fugitive#BufReadStatus(...) abort let diff = {'Staged': {'stdout': ['']}, 'Unstaged': {'stdout': ['']}} if len(staged) let diff['Staged'] = - \ fugitive#Execute(['diff', '--color=never', '--no-ext-diff', '--no-prefix', '--cached'], function('len')) + \ fugitive#Execute(['-c', 'diff.suppressBlankEmpty=false', 'diff', '--color=never', '--no-ext-diff', '--no-prefix', '--cached'], function('len')) endif if len(unstaged) let diff['Unstaged'] = - \ fugitive#Execute(['diff', '--color=never', '--no-ext-diff', '--no-prefix'], function('len')) + \ fugitive#Execute(['-c', 'diff.suppressBlankEmpty=false', 'diff', '--color=never', '--no-ext-diff', '--no-prefix'], function('len')) endif for dict in staged