Use platform path separator for Projectionist config

This commit is contained in:
Tim Pope 2018-08-29 17:11:01 -04:00
parent fd83fcaf90
commit b3651aa744

View File

@ -224,6 +224,9 @@ function! s:ProjectionistDetect() abort
let base = FugitiveTreeForGitDir(dir) let base = FugitiveTreeForGitDir(dir)
endif endif
if len(base) if len(base)
if exists('+shellslash') && !&shellslash
let base = tr(base, '/', '\')
endif
call projectionist#append(base, FugitiveCommonDir(dir) . '/info/projections.json') call projectionist#append(base, FugitiveCommonDir(dir) . '/info/projections.json')
endif endif
endfunction endfunction