mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-02 16:33:52 +08:00
Always convert backslashes on Windows
The old conditional was fine for most things, but this ensures that backslashes are used even for raw user input. References https://github.com/tpope/vim-fugitive/issues/1079
This commit is contained in:
1 parent
e9dc363745
commit
7bdf33d375
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user