Skip to content
Myr

[bash] Fix infinite retry loop for completion setting without "-F func" (#4004)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Koichi Murase · committed by GitHub · parent 855f907 · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:shell/completion.bash+1 added
262 unmodified lines
263 ret=$?264 # _completion_loader may not have updated completion for the command265 if [[ "$(complete -p "$orig_cmd" 2> /dev/null)" != "$orig_complete" ]]; then266 __fzf_orig_completion < <(complete -p "$orig_cmd" 2> /dev/null)267 __fzf_orig_completion_get_orig_func "$cmd" || ret=1268269 # Update orig_complete by _fzf_orig_completion entry270 [[ $orig_complete =~ ' -F '(_fzf_[^ ]+)' ' ]] &&271 __fzf_orig_completion_instantiate "$cmd" "${BASH_REMATCH[1]}" &&
328 unmodified lines