mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 21:33:53 -05:00
Disable diff.suppressBlankEmpty for summary window diff
Resolves: https://github.com/tpope/vim-fugitive/issues/1897
This commit is contained in:
@@ -2716,11 +2716,11 @@ function! fugitive#BufReadStatus(...) abort
|
|||||||
let diff = {'Staged': {'stdout': ['']}, 'Unstaged': {'stdout': ['']}}
|
let diff = {'Staged': {'stdout': ['']}, 'Unstaged': {'stdout': ['']}}
|
||||||
if len(staged)
|
if len(staged)
|
||||||
let diff['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
|
endif
|
||||||
if len(unstaged)
|
if len(unstaged)
|
||||||
let diff['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
|
endif
|
||||||
|
|
||||||
for dict in staged
|
for dict in staged
|
||||||
|
|||||||
Reference in New Issue
Block a user