Fixed escaping

This commit is contained in:
Wilson Y. Wong
2013-08-13 21:32:00 -07:00
parent da7900a809
commit fa6c08b841

View File

@@ -89,7 +89,7 @@ function! s:escape(str)
else else
let esc = exists('+shellxescape') ? &shellxescape : '"&|<>()@^' let esc = exists('+shellxescape') ? &shellxescape : '"&|<>()@^'
return &shellquote . return &shellquote .
\ substitute(a:str, '['.esc.']', '^&', 'g') . \ substitute(a:str, '['.esc.']', '&', 'g') .
\ get({'(': ')', '"(': ')"'}, &shellquote, &shellquote) \ get({'(': ')', '"(': ')"'}, &shellquote, &shellquote)
endif endif
endfunction endfunction