From b3651aa744897966f36cab09bb47c23bfb3be49c Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 29 Aug 2018 17:11:01 -0400 Subject: [PATCH] Use platform path separator for Projectionist config --- plugin/fugitive.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 1d83f6c..3e29514 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -224,6 +224,9 @@ function! s:ProjectionistDetect() abort let base = FugitiveTreeForGitDir(dir) endif if len(base) + if exists('+shellslash') && !&shellslash + let base = tr(base, '/', '\') + endif call projectionist#append(base, FugitiveCommonDir(dir) . '/info/projections.json') endif endfunction