We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05d72cc commit 70bb59cCopy full SHA for 70bb59c
plugin/fzf.vim
@@ -46,7 +46,8 @@ if s:is_win
46
endfunction
47
48
function! s:shellesc(arg)
49
- let escaped = substitute(a:arg, '[">]', '^&', 'g')
+ let escaped = substitute(a:arg, '>', '^&', 'g')
50
+ let escaped = substitute(a:arg, '"', '\\^&', 'g')
51
let escaped = substitute(escaped, '\\\\^', '\\^&', 'g')
52
return '^"'.substitute(escaped, '[^\\]\zs\\$', '\\\\', '').'^"'
53
0 commit comments