diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 6c284ce..e3192bd 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -82,7 +82,7 @@ function! s:warn(str) abort endfunction function! s:Slash(path) abort - if exists('+shellslash') && !&shellslash + if exists('+shellslash') return tr(a:path, '\', '/') else return a:path diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 2b5931f..3db9f7a 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -205,7 +205,7 @@ function! FugitiveGenerate(...) abort endfunction function! s:Slash(path) abort - if exists('+shellslash') && !&shellslash + if exists('+shellslash') return tr(a:path, '\', '/') else return a:path