commit b3651aa744897966f36cab09bb47c23bfb3be49c (tree)
parent fd83fcaf90023f2bd4b0193eee237b117b37c2be
Author: Tim Pope <code@tpope.net>
Date: Wed, 29 Aug 2018 17:11:01 -0400
Use platform path separator for Projectionist config
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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