From 30a8ef28cdc1d23cf6956f57ca05bd28db515014 Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Mon, 23 Sep 2024 19:16:59 +0900 Subject: [PATCH] [bash] Fix infinite retry loop for completion setting without "-F func" (#4004) --- shell/completion.bash | 1 + 1 file changed, 1 insertion(+) diff --git a/shell/completion.bash b/shell/completion.bash index abeb2e9..5eebdef 100644 --- a/shell/completion.bash +++ b/shell/completion.bash @@ -264,6 +264,7 @@ _fzf_handle_dynamic_completion() { # _completion_loader may not have updated completion for the command if [[ "$(complete -p "$orig_cmd" 2> /dev/null)" != "$orig_complete" ]]; then __fzf_orig_completion < <(complete -p "$orig_cmd" 2> /dev/null) + __fzf_orig_completion_get_orig_func "$cmd" || ret=1 # Update orig_complete by _fzf_orig_completion entry [[ $orig_complete =~ ' -F '(_fzf_[^ ]+)' ' ]] &&