This commit is contained in:
Junegunn Choi
2024-05-14 01:30:36 +09:00
parent 4e9e842aa4
commit 6432f00f0d
7 changed files with 16 additions and 6 deletions

View File

@@ -95,7 +95,7 @@ function! s:shellesc_cmd(arg)
let e .= c
endfor
let e .= repeat('\', slashes) .'"'
return e
return substitute(substitute(e, '[&|<>()^!"]', '^&', 'g'), '%', '%%', 'g')
endfunction
function! fzf#shellescape(arg, ...)