Use fzf#shellescape instead (#1503)

This commit is contained in:
jiz4oh
2023-09-07 10:31:15 +08:00
committed by GitHub
parent 7ba5be32bc
commit 587f55bf50
5 changed files with 5 additions and 5 deletions

View File

@@ -914,7 +914,7 @@ function! fzf#vim#grep2(command_prefix, query, ...)
\ 'source': ':',
\ 'options': ['--ansi', '--prompt', toupper(name).'> ', '--query', a:query,
\ '--disabled',
\ '--bind', 'start:reload:'.a:command_prefix.' '.shellescape(a:query),
\ '--bind', 'start:reload:'.a:command_prefix.' '.fzf#shellescape(a:query),
\ '--bind', 'change:reload:'.a:command_prefix.' {q} || :',
\ '--multi', '--bind', 'alt-a:select-all,alt-d:deselect-all',
\ '--delimiter', ':', '--preview-window', '+{2}-/2']