diff --git a/bash_completions.go b/bash_completions.go index 59e90f9..a0d0402 100644 --- a/bash_completions.go +++ b/bash_completions.go @@ -88,8 +88,8 @@ __handle_reply() local index flag flag="${cur%%=*}" __index_of_word "${flag}" "${flags_with_completion[@]}" + COMPREPLY=() if [[ ${index} -ge 0 ]]; then - COMPREPLY=() PREFIX="" cur="${cur#*=}" ${flags_completion[${index}]}