Skip to content
Myr

[bash] Update orig_complete after _completion_loader

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

authored by Koichi Murase · committed by Junegunn Choi · parent 1dbdb94 · Browse files · 1 file+6 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+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:shell/completion.bash+6 added
297 unmodified lines
298 ret=$?299 # _completion_loader may not have updated completion for the command300 if [[ "$(complete -p "$orig_cmd" 2> /dev/null)" != "$orig_complete" ]]; then301 __fzf_orig_completion < <(complete -p "$orig_cmd" 2> /dev/null)302303 # Update orig_complete by _fzf_orig_completion entry304 [[ $orig_complete =~ ' -F '(_fzf_[^ ]+)' ' ]] &&305 __fzf_orig_completion_instantiate "$cmd" "${BASH_REMATCH[1]}" &&306 orig_complete=$REPLY307308 if [[ "${__fzf_nospace_commands-}" = *" $orig_cmd "* ]]; then309 eval "${orig_complete/ -F / -o nospace -F }"310 else311 eval "$orig_complete"
256 unmodified lines