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 | |
parent | 16372ce057fdba87e1694501297fbbcf01c7f59c (diff) | |
download | zsh-1a1d270e1393995cbb3f2e1e22a5d33b650d4eec.tar.gz zsh-1a1d270e1393995cbb3f2e1e22a5d33b650d4eec.tar.xz zsh-1a1d270e1393995cbb3f2e1e22a5d33b650d4eec.zip |
15638
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Base/Completer/_approximate | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index b96b886c2..6d2311cf6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-08-16 Sven Wischnowsky <wischnow@zsh.org> + + * 15638: Completion/Base/Completer/_approximate: make sure that + there is one of the group-options before using it + 2001-08-15 Geoff Wing <gcw@zsh.org> * 15621: Src/Zle/zle_refresh.c: display of status line was being 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[@]" "$@" } |