about summary refs log tree commit diff
path: root/Completion/Base
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2002-01-07 14:38:13 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2002-01-07 14:38:13 +0000
commit90bbd87734053303751d401a807be8a7fe3b9176 (patch)
tree3ea728b70c4fd811c83659de35278677b7c31ca7 /Completion/Base
parentad41ecec2b030446aacf8337e67da81ab189caaa (diff)
downloadzsh-90bbd87734053303751d401a807be8a7fe3b9176.tar.gz
zsh-90bbd87734053303751d401a807be8a7fe3b9176.tar.xz
zsh-90bbd87734053303751d401a807be8a7fe3b9176.zip
fixes for completion of signal names with SIG prefix and for completing command names instead of pids (16406)
Diffstat (limited to 'Completion/Base')
-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[@]" "$@"
   }