mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 13:53:51 -05:00
Don't overwrite paste buffer in :Gread
This commit is contained in:
@@ -860,7 +860,7 @@ function! s:Edit(cmd,...) abort
|
|||||||
if a:cmd =~# '!$'
|
if a:cmd =~# '!$'
|
||||||
call s:warn(':Gread! is deprecated. Use :Gread')
|
call s:warn(':Gread! is deprecated. Use :Gread')
|
||||||
endif
|
endif
|
||||||
return 'silent %delete|read '.s:fnameescape(file).'|silent 1delete_|diffupdate|'.line('.')
|
return 'silent %delete_|read '.s:fnameescape(file).'|silent 1delete_|diffupdate|'.line('.')
|
||||||
else
|
else
|
||||||
if &previewwindow && getbufvar('','fugitive_type') ==# 'index'
|
if &previewwindow && getbufvar('','fugitive_type') ==# 'index'
|
||||||
wincmd p
|
wincmd p
|
||||||
|
|||||||
Reference in New Issue
Block a user