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:
Tim Pope 2019-08-15 16:52:15 -04:00
parent a80b965d0d
commit 45ca1eab83

View File

@ -2206,7 +2206,7 @@ function! s:DirArg(path) abort
if path =~# '^/\|^\a\+:\|^\.\.\=\%(/\|$\)'
return path
else
return (empty(s:Tree()) ? s:Dir() : s:Tree()) . '/' . path
return s:PlatformSlash((empty(s:Tree()) ? s:Dir() : s:Tree()) . '/' . path)
endif
endfunction