From 901d8b4c97f2f0855005825764c01d00d6d47f19 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 18 Feb 2002 14:27:36 +0000 Subject: fix test for prefix-needed (16667) --- Completion/Base/Utility/_arguments | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Completion/Base') diff --git a/Completion/Base/Utility/_arguments b/Completion/Base/Utility/_arguments index b4f3c599f..826d5b5c2 100644 --- a/Completion/Base/Utility/_arguments +++ b/Completion/Base/Utility/_arguments @@ -331,11 +331,10 @@ if (( $# )) && comparguments -i "$autod" "$singopt[@]" "$@"; then fi done fi - if [[ -z "$hasopts" && + if _requested options && + [[ -z "$hasopts" && -z "$matched" && - ( -z "$tried" || -n "$alwopt" ) && ( -z "$aret" || "$PREFIX" = "$origpre" ) ]] && - _requested options && { ! zstyle -T ":completion:${curcontext}:options" prefix-needed || [[ "$origpre" = [-+]* || -z "$aret$mesg$tried" ]] } ; then local prevpre="$PREFIX" previpre="$IPREFIX" -- cgit 1.4.1