diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2002-01-07 14:38:13 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2002-01-07 14:38:13 +0000 |
commit | 90bbd87734053303751d401a807be8a7fe3b9176 (patch) | |
tree | 3ea728b70c4fd811c83659de35278677b7c31ca7 /Completion/Base/Completer | |
parent | ad41ecec2b030446aacf8337e67da81ab189caaa (diff) | |
download | zsh-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/Completer')
-rw-r--r-- | Completion/Base/Completer/_approximate | 4 |
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[@]" "$@" } |