mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-12-06 12:14:31 +08:00
Fix check for need to convert Windows path slashes
Closes https://github.com/tpope/vim-fugitive/issues/1079
This commit is contained in:
@@ -205,7 +205,7 @@ function! FugitiveGenerate(...) abort
|
||||
endfunction
|
||||
|
||||
function! s:Slash(path) abort
|
||||
if &shell =~? 'cmd' || exists('+shellslash') && !&shellslash
|
||||
if exists('+shellslash') && !&shellslash
|
||||
return tr(a:path, '\', '/')
|
||||
else
|
||||
return a:path
|
||||
|
||||
Reference in New Issue
Block a user