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 cb4bb94f7b17332e0beb2655c426663ed46bbc8d (tree)
parent 198e9c412823dae4389d58c3a37b43394257eda5
Author: Tim Pope <code@tpope.net>
Date:   Fri, 28 Jun 2019 14:31:37 -0400

Fix dd in :Gstatus

Closes 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 @@ -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 ==# '+' ? '!' : '') . ' -'