commit 00b0916ae2fc4e329f519686348de13d7477d770 (tree)
parent f096152a48bc2506bd460c9f990e50a159a7bbc5
Author: Mark A. Hillebrand <Mark.A.Hillebrand@gmail.com>
Date: Sun, 23 Jun 2013 09:59:13 +0200
Fix :Gmove command on Windows
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
@@ -1504,7 +1504,7 @@ function! s:Move(force,destination)
if a:destination =~# '^/'
let destination = a:destination[1:-1]
else
- let destination = fnamemodify(s:sub(a:destination,'[%#]%(:\w)*','\=expand(submatch(0))'),':p')
+ let destination = s:shellslash(fnamemodify(s:sub(a:destination,'[%#]%(:\w)*','\=expand(submatch(0))'),':p'))
if destination[0:strlen(s:repo().tree())] ==# s:repo().tree('')
let destination = destination[strlen(s:repo().tree('')):-1]
endif