From 9c195de61bac489dfd88a55eb457113a07a21729 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 28 Jun 2019 14:42:01 -0400 Subject: [PATCH] Fix dd in :Gstatus staged section References https://github.com/tpope/vim-fugitive/issues/1269 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index f54f42b..0b11304 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2428,7 +2428,7 @@ function! s:StageDiff(diff) abort return a:diff.'! :0:%' elseif info.section ==# 'Staged' execute 'Gedit' prefix s:fnameescape(':0:'.info.paths[0]) - return a:diff . (info.sigil ==# '+' ? '!' : '') . ' -' + return a:diff . (info.sigil ==# '+' ? '!' : '') . ' @:%' elseif info.sigil ==# '-' execute 'Gedit' prefix s:fnameescape(':0:'.info.paths[0]) return a:diff . '!'