motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 9c195de61bac489dfd88a55eb457113a07a21729 (tree)
parent cb4bb94f7b17332e0beb2655c426663ed46bbc8d
Author: Tim Pope <code@tpope.net>
Date:   Fri, 28 Jun 2019 14:42:01 -0400

Fix dd in :Gstatus staged section

References https://github.com/tpope/vim-fugitive/issues/1269

Diffstat:
Mautoload/fugitive.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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 . '!'