mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -05:00
Use platform slashes for :Gcd
The only current difference is backslashes on Windows, which aren't required, but this may evolve into larger changes in the future.
This commit is contained in:
@@ -2206,7 +2206,7 @@ function! s:DirArg(path) abort
|
|||||||
if path =~# '^/\|^\a\+:\|^\.\.\=\%(/\|$\)'
|
if path =~# '^/\|^\a\+:\|^\.\.\=\%(/\|$\)'
|
||||||
return path
|
return path
|
||||||
else
|
else
|
||||||
return (empty(s:Tree()) ? s:Dir() : s:Tree()) . '/' . path
|
return s:PlatformSlash((empty(s:Tree()) ? s:Dir() : s:Tree()) . '/' . path)
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user