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) --- ChangeLog | 5 +++++ Completion/Base/Utility/_arguments | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0162f9492..c23d27729 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-02-18 Sven Wischnowsky + + * 16667: Completion/Base/Utility/_arguments: fix test for + prefix-needed + 2002-02-17 Clint Adams * 16662: Completion/Unix/Command/_cdcd: use parameter expansion 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