mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-15 14:53:51 -05:00
Fix dd in :Gstatus
Closes https://github.com/tpope/vim-fugitive/issues/1269
This commit is contained in:
@@ -2425,7 +2425,7 @@ function! s:StageDiff(diff) abort
|
|||||||
return a:diff.' HEAD:'.s:fnameescape(info.paths[1])
|
return a:diff.' HEAD:'.s:fnameescape(info.paths[1])
|
||||||
elseif info.section ==# 'Staged' && info.sigil ==# '-'
|
elseif info.section ==# 'Staged' && info.sigil ==# '-'
|
||||||
execute 'Gedit' prefix s:fnameescape('@:'.info.paths[0])
|
execute 'Gedit' prefix s:fnameescape('@:'.info.paths[0])
|
||||||
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 ==# '+' ? '!' : '') . ' -'
|
||||||
|
|||||||
Reference in New Issue
Block a user