From 5c93cbc7e922f89be23469798c3f6da9a313b00e Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 6 May 2002 07:59:50 +0000 Subject: fix _arguments' -s option (17078) --- Completion/Base/Utility/_describe | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Completion/Base') diff --git a/Completion/Base/Utility/_describe b/Completion/Base/Utility/_describe index fea3ee569..b215b6279 100644 --- a/Completion/Base/Utility/_describe +++ b/Completion/Base/Utility/_describe @@ -66,7 +66,7 @@ while _tags; do if [[ "$1" = (|-*) ]]; then _mats= else - _matss="_a_$_try$_i" + _mats="_a_$_try$_i" if [[ "$1" = \(*\) ]]; then eval local "_a_$_try$_i;_a_$_try$_i"'='$1 else @@ -87,9 +87,7 @@ while _tags; do if [[ -n $_mats ]]; then compadd "$_opts[@]" "${(@)_expl:/-J/-2V}" -D $_strs - \ - "${(@M)${(@P)_strs}##([^:\\]|\\?)##}" - compadd "$_opts[@]" "${(@)_expl:/-J/-2V}" -D $_mats - \ - "${(@M)${(@P)_strs}##([^:\\]|\\?)##}" + "${(@M)${(@P)_mats}##([^:\\]|\\?)##}" else compadd "$_opts[@]" "${(@)_expl:/-J/-2V}" -D $_strs - \ "${(@M)${(@P)_strs}##([^:\\]|\\?)##}" -- cgit 1.4.1