about summary refs log tree commit diff
path: root/Completion/Base/Completer
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Base/Completer')
-rw-r--r--Completion/Base/Completer/_approximate4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Base/Completer/_approximate b/Completion/Base/Completer/_approximate
index 39518803e..b0d8c43c2 100644
--- a/Completion/Base/Completer/_approximate
+++ b/Completion/Base/Completer/_approximate
@@ -60,8 +60,8 @@ if (( ! $+functions[compadd] )); then
       PREFIX="(#a${_comp_correct})$PREFIX"
     fi
 
-    (( $_correct_group && $argv[(I)-*[JV]] )) &&
-        _correct_expl[_correct_group]=${argv[(R)-*[JV]]}
+    (( $_correct_group && ${${argv[1,(r)-(|-)]}[(I)-*[JV]]} )) &&
+        _correct_expl[_correct_group]=${argv[1,(r)-(-|)][(R)-*[JV]]}
 
     builtin compadd "$_correct_expl[@]" "$@"
   }