diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index ddf78d8..b6cb967 100644 --- 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