Skip to content

Commit

Permalink
Fix infinite retry loop for Bash completion setting without "-F func"
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Sep 23, 2024
1 parent 855f907 commit f62c2ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shell/completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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_[^ ]+)' ' ]] &&
Expand Down

0 comments on commit f62c2ba

Please sign in to comment.