diff options
Diffstat (limited to 'Completion/Base/Completer/_approximate')
-rw-r--r-- | Completion/Base/Completer/_approximate | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Completion/Base/Completer/_approximate b/Completion/Base/Completer/_approximate index a442c9a97..3ed8be730 100644 --- a/Completion/Base/Completer/_approximate +++ b/Completion/Base/Completer/_approximate @@ -59,7 +59,8 @@ if (( ! $+functions[compadd] )); then PREFIX="(#a${_comp_correct})$PREFIX" # fi - (( $_correct_group )) && _correct_expl[_correct_group]=${argv[(R)-*[JV]]} + (( $_correct_group && $argv[(I)-*[JV]] )) && + _correct_expl[_correct_group]=${argv[(R)-*[JV]]} builtin compadd "$_correct_expl[@]" "$@" } |