mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 12:53:52 -05:00
Fix shell escaping edge case on win32
This is a proactive fix; no erroneous behavior has been observed.
This commit is contained in:
@@ -41,7 +41,7 @@ endfunction
|
||||
|
||||
function! s:WinShellEsc(arg) abort
|
||||
if type(a:arg) == type([])
|
||||
return join(map(copy(a:arg), 's:shellesc(v:val)'))
|
||||
return join(map(copy(a:arg), 's:WinShellEsc(v:val)'))
|
||||
elseif a:arg =~# '^[A-Za-z0-9_/:.-]\+$'
|
||||
return a:arg
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user