Rename s:PlatformSlash() to FugitiveVimPath()

This commit is contained in:
Tim Pope
2019-08-19 06:19:34 -04:00
parent e759a85486
commit fd7b5d8a1e
2 changed files with 29 additions and 28 deletions

View File

@@ -214,6 +214,14 @@ function! FugitiveDetect(path) abort
endif
endfunction
function! FugitiveVimPath(path) abort
if exists('+shellslash') && !&shellslash
return tr(a:path, '/', '\')
else
return a:path
endif
endfunction
function! s:Slash(path) abort
if exists('+shellslash')
return tr(a:path, '\', '/')