mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 22:33:51 -05:00
Don't require shell quoting for colons
References https://github.com/tpope/vim-fugitive/issues/1289
This commit is contained in:
@@ -46,7 +46,7 @@ endfunction
|
|||||||
function! s:shellesc(arg) abort
|
function! s:shellesc(arg) abort
|
||||||
if type(a:arg) == type([])
|
if type(a:arg) == type([])
|
||||||
return join(map(copy(a:arg), 's:shellesc(v:val)'))
|
return join(map(copy(a:arg), 's:shellesc(v:val)'))
|
||||||
elseif a:arg =~ '^[A-Za-z0-9_/.-]\+$'
|
elseif a:arg =~ '^[A-Za-z0-9_/:.-]\+$'
|
||||||
return a:arg
|
return a:arg
|
||||||
elseif s:winshell()
|
elseif s:winshell()
|
||||||
return '"'.s:gsub(s:gsub(a:arg, '"', '""'), '\%', '"%"').'"'
|
return '"'.s:gsub(s:gsub(a:arg, '"', '""'), '\%', '"%"').'"'
|
||||||
|
|||||||
Reference in New Issue
Block a user