Skip to content

Commit

Permalink
[bash] Fix regression in dynamic completion
Browse files Browse the repository at this point in the history
Fix #3674
  • Loading branch information
junegunn committed Mar 12, 2024
1 parent c5b1970 commit 6ce8d49
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 @@ -387,6 +387,7 @@ _fzf_complete() {
type -t "$post" > /dev/null 2>&1 || post='command cat'
trigger=${FZF_COMPLETION_TRIGGER-'**'}
cmd="${COMP_WORDS[0]}"
cur="${COMP_WORDS[COMP_CWORD]}"
if [[ "$cur" == *"$trigger" ]] && [[ $cur != *'$('* ]] && [[ $cur != *':='* ]] && [[ $cur != *'`'* ]]; then
cur=${cur:0:${#cur}-${#trigger}}
Expand Down

0 comments on commit 6ce8d49

Please sign in to comment.