diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2024-07-05 01:46:36 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-05 01:46:36 +0900 |
| commit | 23a391e71599fadb780b53f716c86d5aec07e1d8 (patch) | |
| tree | f9153698a39b9cfcb39a66c88cdd7da6a27a52f1 /shell/completion.zsh | |
| parent | 035b0be29fabae3437d89db89ac1303fcc768781 (diff) | |
| download | fzf-23a391e71599fadb780b53f716c86d5aec07e1d8.tar.gz | |
[zsh] Fix backslash escaping (#3909)
Fix #3859
To test:
FZF_CTRL_T_COMMAND="echo -E 'foo\bar\baz'; echo -E 'hello\world'"
_fzf_compgen_path() {
eval $FZF_CTRL_T_COMMAND
}
source shell/key-bindings.zsh
source shell/completion.zsh
Diffstat (limited to 'shell/completion.zsh')
| -rw-r--r-- | shell/completion.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/completion.zsh b/shell/completion.zsh index 46103f98..4786bbd3 100644 --- a/shell/completion.zsh +++ b/shell/completion.zsh @@ -171,9 +171,9 @@ __fzf_generic_path_completion() { rest=${FZF_COMPLETION_PATH_OPTS-} fi __fzf_comprun "$cmd" ${(Q)${(Z+n+)fzf_opts}} -q "$leftover" --walker "$walker" --walker-root="$dir" ${(Q)${(Z+n+)rest}} < /dev/tty - fi | while read item; do + fi | while read -r item; do item="${item%$suffix}$suffix" - echo -n "${(q)item} " + echo -n -E "${(q)item} " done ) matches=${matches% } |
