Skip to content
Myr

[bash] Fix 'possible retry loop' problem of bash-completion (#2891)

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

Close #2474 Close #2583

authored by Bob Matcuk · committed by GitHub · parent 18f7230 · Browse files · 1 file+5 added−1 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+5 added−1 removed

  • other:+5 added−1 removed

1 file+5 added−1 removed

modified:shell/completion.bash+5 added-1 removed
159 unmodified lines
160}161162__fzf_generic_path_completion() {163 local cur base dir leftover matches trigger cmd164 cmd="${COMP_WORDS[0]//[^A-Za-z0-9_=]/_}"164 cmd="${COMP_WORDS[0]}"165 if [[ $cmd == \\* ]]; then166 cmd="${cmd:1}"167 fi168 cmd="${cmd//[^A-Za-z0-9_=]/_}"169 COMPREPLY=()170 trigger=${FZF_COMPLETION_TRIGGER-'**'}171 cur="${COMP_WORDS[COMP_CWORD]}"172 if [[ "$cur" == *"$trigger" ]]; then
207 unmodified lines