Fix shell escaping edge case on win32

This is a proactive fix; no erroneous behavior has been observed.
This commit is contained in:
Tim Pope
2021-06-11 17:40:15 -04:00
parent 41960996e0
commit c26b4b018a

View File

@@ -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