From 90bbd87734053303751d401a807be8a7fe3b9176 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 7 Jan 2002 14:38:13 +0000 Subject: fixes for completion of signal names with SIG prefix and for completing command names instead of pids (16406) --- Completion/Base/Completer/_approximate | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Completion/Base') 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[@]" "$@" } -- cgit 1.4.1