From 4c650c699d1c8f7602976211bf1067fd62d740c5 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 15 Jul 2019 15:33:14 -0400 Subject: [PATCH] Don't require shell quoting for colons References https://github.com/tpope/vim-fugitive/issues/1289 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index b818325..54ca1c8 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -46,7 +46,7 @@ endfunction function! s:shellesc(arg) abort if type(a:arg) == type([]) 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 elseif s:winshell() return '"'.s:gsub(s:gsub(a:arg, '"', '""'), '\%', '"%"').'"'