summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-03-13 08:31:14 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-03-13 08:31:31 +0900
commit6ce8d49d1b6a38a1a7cbb02e2726956b211f46be (patch)
tree5250b6cf3520f4e31113a4ca1eb6da4cbbb9587d
parentc5b197078a73803f1955b27162010b3af78b6018 (diff)
[bash] Fix regression in dynamic completion
Fix #3674
-rw-r--r--shell/completion.bash1
1 files changed, 1 insertions, 0 deletions
diff --git a/shell/completion.bash b/shell/completion.bash
index dae8b210..6f60ecf0 100644
--- a/shell/completion.bash
+++ b/shell/completion.bash
@@ -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}}