Fix check for need to convert Windows path slashes
Closes https://github.com/tpope/vim-fugitive/issues/1079
This commit is contained in:
parent
9979b2ab7c
commit
e9dc363745
@ -82,7 +82,7 @@ function! s:warn(str) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:Slash(path) abort
|
function! s:Slash(path) abort
|
||||||
if s:winshell()
|
if exists('+shellslash') && !&shellslash
|
||||||
return tr(a:path, '\', '/')
|
return tr(a:path, '\', '/')
|
||||||
else
|
else
|
||||||
return a:path
|
return a:path
|
||||||
|
@ -205,7 +205,7 @@ function! FugitiveGenerate(...) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:Slash(path) abort
|
function! s:Slash(path) abort
|
||||||
if &shell =~? 'cmd' || exists('+shellslash') && !&shellslash
|
if exists('+shellslash') && !&shellslash
|
||||||
return tr(a:path, '\', '/')
|
return tr(a:path, '\', '/')
|
||||||
else
|
else
|
||||||
return a:path
|
return a:path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user