m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-16 07:13:48 -05:00

[bash] Fix 'complete' errors when IFS is newline

Fix #4342
This commit is contained in:
Junegunn Choi
2025-05-30 20:38:20 +09:00
parent 54fd92b7dd
commit 1ecfa38eee

View File

@@ -572,7 +572,7 @@ __fzf_defc() {
if __fzf_orig_completion_instantiate "$cmd" "$func"; then
eval "$REPLY"
else
complete -F "$func" $opts "$cmd"
eval "complete -F \"$func\" $opts \"$cmd\""
fi
}