From 45ca1eab83db258ad0bc89bd5f99e1059890bb6f Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 15 Aug 2019 16:52:15 -0400 Subject: [PATCH] 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. --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 3b3d6a2..d6902a1 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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