Update plugin/fzf.vim

pull/3189/head
Junegunn Choi 1 year ago committed by GitHub
parent e2e3d36a58
commit 0045dfc4eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -88,10 +88,7 @@ function! s:shellesc_win(arg)
let escaped = substitute(escaped, '%', '%%', 'g')
let escaped = substitute(escaped, '"', '\\^&', 'g')
let escaped = substitute(escaped, '\(\\\+\)\(\\^\)', '\1\1\2', 'g')
let quote_str= '^"'
if &shell =~ 'powershell\|pwsh'
let quote_str= '"'
endif
let quote_str = &shell =~ 'powershell\|pwsh' ? '"' : '^"'
return quote_str.substitute(escaped, '\(\\\+\)$', '\1\1', '').quote_str
endfunction

Loading…
Cancel
Save