From 6eadff1107c7cc0d389793478141f02ab13e5a7a Mon Sep 17 00:00:00 2001 From: Ryo Susami <36094352+RyoSusami@users.noreply.github.com> Date: Sat, 28 Jul 2018 14:50:51 +0900 Subject: [PATCH] Correct the directory separator of Path() on Windows (#1067) --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index cee6436..7b709c1 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -522,7 +522,7 @@ function! fugitive#Path(url, ...) abort if !a:0 return fugitive#Real(a:url) endif - let url = fnamemodify(a:url, ':p') + let url = s:shellslash(fnamemodify(a:url, ':p')) let dir = a:0 > 1 ? a:2 : get(b:, 'git_dir', '') let tree = FugitiveTreeForGitDir(dir) let [argdir, commit, file] = s:DirCommitFile(a:url)