diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-08-16 08:07:41 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-08-16 08:07:41 +0000 |
commit | 1a1d270e1393995cbb3f2e1e22a5d33b650d4eec (patch) | |
tree | f41e6b4c6f55306f74cb0c84119059ebcf01df8b /Completion/Base/Completer/_approximate | |
parent | 16372ce057fdba87e1694501297fbbcf01c7f59c (diff) | |
download | zsh-1a1d270e1393995cbb3f2e1e22a5d33b650d4eec.tar.gz zsh-1a1d270e1393995cbb3f2e1e22a5d33b650d4eec.tar.xz zsh-1a1d270e1393995cbb3f2e1e22a5d33b650d4eec.zip |
15638
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[@]" "$@" } |