diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | 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 <wischnow@zsh.org> + + * 16667: Completion/Base/Utility/_arguments: fix test for + prefix-needed + 2002-02-17 Clint Adams <clint@zsh.org> * 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" |