summary refs log tree commit diff
path: root/Completion/Base/Completer/_approximate
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-08-16 08:07:41 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-08-16 08:07:41 +0000
commit1a1d270e1393995cbb3f2e1e22a5d33b650d4eec (patch)
treef41e6b4c6f55306f74cb0c84119059ebcf01df8b /Completion/Base/Completer/_approximate
parent16372ce057fdba87e1694501297fbbcf01c7f59c (diff)
downloadzsh-1a1d270e1393995cbb3f2e1e22a5d33b650d4eec.tar.gz
zsh-1a1d270e1393995cbb3f2e1e22a5d33b650d4eec.tar.xz
zsh-1a1d270e1393995cbb3f2e1e22a5d33b650d4eec.zip
15638
Diffstat (limited to 'Completion/Base/Completer/_approximate')
-rw-r--r--Completion/Base/Completer/_approximate3
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[@]" "$@"
   }