mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-09 20:13:46 -05:00
Fix :Gmove command on Windows
This commit is contained in:
committed by
Tim Pope
parent
f096152a48
commit
00b0916ae2
@@ -1504,7 +1504,7 @@ function! s:Move(force,destination)
|
|||||||
if a:destination =~# '^/'
|
if a:destination =~# '^/'
|
||||||
let destination = a:destination[1:-1]
|
let destination = a:destination[1:-1]
|
||||||
else
|
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('')
|
if destination[0:strlen(s:repo().tree())] ==# s:repo().tree('')
|
||||||
let destination = destination[strlen(s:repo().tree('')):-1]
|
let destination = destination[strlen(s:repo().tree('')):-1]
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user