mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 05:13:53 -05:00
Fix dd in :Gstatus staged section
References https://github.com/tpope/vim-fugitive/issues/1269
This commit is contained in:
@@ -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 . '!'
|
||||
|
||||
Reference in New Issue
Block a user