From 0184570176551a6c6ba345fd08a8250e8ccf96cc Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 28 Apr 2011 21:23:47 -0400 Subject: [PATCH] Revert "Preserve alternate file in :Gmove" This reverts commit 68b3f3b3d6e8e01bf1c60b22745db731356349cc. Since :saveas changes the alternate file, :Gmove should too. --- plugin/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 6365a1e..330f7fe 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1205,9 +1205,9 @@ function! s:Move(force,destination) call fugitive#reload_status() if s:buffer().commit() == '' if isdirectory(destination) - return 'keepalt edit '.s:fnameescape(destination) + return 'edit '.s:fnameescape(destination) else - return 'keepalt saveas! '.s:fnameescape(destination) + return 'saveas! '.s:fnameescape(destination) endif else return 'file '.s:fnameescape(s:repo().translate(':0:'.destination)