Skip to content

Commit

Permalink
Fix check for need to convert Windows path slashes
Browse files Browse the repository at this point in the history
Closes #1079
  • Loading branch information
tpope committed Aug 19, 2018
1 parent 9979b2a commit e9dc363
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autoload/fugitive.vim
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function! s:warn(str) abort
endfunction

function! s:Slash(path) abort
if s:winshell()
if exists('+shellslash') && !&shellslash
return tr(a:path, '\', '/')
else
return a:path
Expand Down
2 changes: 1 addition & 1 deletion plugin/fugitive.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e9dc363

Please sign in to comment.