Skip to content
Myr

[bash] Do not print error when falling back to default completion (#1279)

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

Fixes #1278

authored by ptzz · committed by Junegunn Choi · parent ddd2a10 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:shell/completion.bash+2 added-2 removed
119 unmodified lines
120 orig="${!orig_var##*#}"121 if [ -n "$orig" ] && type "$orig" > /dev/null 2>&1; then122 $orig "$@"123 elif [ -n "$_fzf_completion_loader" ]; then124 orig_complete=$(complete -p "$cmd")124 orig_complete=$(complete -p "$cmd" 2> /dev/null)125 _completion_loader "$@"126 ret=$?127 # _completion_loader may not have updated completion for the command128 if [ "$(complete -p "$cmd")" != "$orig_complete" ]; then128 if [ "$(complete -p "$cmd" 2> /dev/null)" != "$orig_complete" ]; then129 eval "$(complete | command grep " -F.* $orig_cmd$" | __fzf_orig_completion_filter)"130 if [[ "$__fzf_nospace_commands" = *" $orig_cmd "* ]]; then131 eval "${orig_complete/ -F / -o nospace -F }"132 else
200 unmodified lines