mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-02 16:33:52 +08:00
Rename s:PlatformSlash() to FugitiveVimPath()
This commit is contained in:
1 parent
e759a85486
commit
fd7b5d8a1e
2 files changed
+29
-28
No files matched your search
@@ -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, '\', '/')
|
||||
|
||||
Reference in new issue
Block a user