Fix dd in :Gstatus staged section

References https://github.com/tpope/vim-fugitive/issues/1269
This commit is contained in:
Tim Pope
2019-06-28 14:42:01 -04:00
parent cb4bb94f7b
commit 9c195de61b

View File

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