summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorKoichi Murase <myoga.murase@gmail.com>2024-09-23 19:16:59 +0900
committerGitHub <noreply@github.com>2024-09-23 19:16:59 +0900
commit30a8ef28cdc1d23cf6956f57ca05bd28db515014 (patch)
treeae74cab047a2e68e8b58533d0e7d7bc591ec437f /shell
parent855f90727af7827d9934b7fa00ea5ed51f5e4e81 (diff)
downloadfzf-30a8ef28cdc1d23cf6956f57ca05bd28db515014.tar.gz
[bash] Fix infinite retry loop for completion setting without "-F func" (#4004)
Diffstat (limited to 'shell')
-rw-r--r--shell/completion.bash1
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/completion.bash b/shell/completion.bash
index abeb2e9a..5eebdef5 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_[^ ]+)' ' ]] &&