From 64ead8ea1c0b511c426dc132159416b105d4d720 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 27 Dec 2010 23:50:32 -0500 Subject: [PATCH] Don't overwrite paste buffer in :Gread --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index dab7e70..5a063c4 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -860,7 +860,7 @@ function! s:Edit(cmd,...) abort if a:cmd =~# '!$' call s:warn(':Gread! is deprecated. Use :Gread') endif - return 'silent %delete|read '.s:fnameescape(file).'|silent 1delete_|diffupdate|'.line('.') + return 'silent %delete_|read '.s:fnameescape(file).'|silent 1delete_|diffupdate|'.line('.') else if &previewwindow && getbufvar('','fugitive_type') ==# 'index' wincmd p