From 5b1467af75c5e96e3ab0bb170f535ef85d911587 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 13 Mar 2012 20:58:59 -0400 Subject: [PATCH] Preserve alternate file in :Gmove Second time's the charm. I've decided moving is sufficiently different from copying to justify this. --- plugin/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 41299c8..e710d14 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1370,9 +1370,9 @@ function! s:Move(force,destination) call fugitive#reload_status() if s:buffer().commit() == '' if isdirectory(destination) - return 'edit '.s:fnameescape(destination) + return 'keepalt edit '.s:fnameescape(destination) else - return 'saveas! '.s:fnameescape(destination) + return 'keepalt saveas! '.s:fnameescape(destination) endif else return 'file '.s:fnameescape(s:repo().translate(':0:'.destination)