Fix dd in :Gstatus

Closes https://github.com/tpope/vim-fugitive/issues/1269
This commit is contained in:
Tim Pope
2019-06-28 14:31:37 -04:00
parent 198e9c4128
commit cb4bb94f7b

View File

@@ -2425,7 +2425,7 @@ function! s:StageDiff(diff) abort
return a:diff.' HEAD:'.s:fnameescape(info.paths[1])
elseif info.section ==# 'Staged' && info.sigil ==# '-'
execute 'Gedit' prefix s:fnameescape('@:'.info.paths[0])
return a:diff.'! :0'
return a:diff.'! :0:%'
elseif info.section ==# 'Staged'
execute 'Gedit' prefix s:fnameescape(':0:'.info.paths[0])
return a:diff . (info.sigil ==# '+' ? '!' : '') . ' -'