From a267832ddf4150652fde3936858841bb2edbd9ae Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Wed, 25 Jun 2003 09:03:04 +0000 Subject: 18631: returning too early breaks prefix-needed style set to false --- Completion/Unix/Command/_finger | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Completion/Unix/Command/_finger') diff --git a/Completion/Unix/Command/_finger b/Completion/Unix/Command/_finger index 4dd45f3c2..1ffb52d14 100644 --- a/Completion/Unix/Command/_finger +++ b/Completion/Unix/Command/_finger @@ -1,10 +1,10 @@ #compdef finger -local curcontext="$curcontext" state line match +local curcontext="$curcontext" state line match ret=1 typeset -A opt_args if (( ! $+_finger_args )); then - local help="$(_call_program options finger -\? 2>&1)" + local help="$(_call_program options finger -\\\? 2>&1)" local -A optionmap ## `finger -\?': @@ -69,10 +69,12 @@ if (( ! $+_finger_args )); then fi fi -_arguments -C -s $_finger_args '*:finger targets:->finger-targets' && return 0 +_arguments -C -s $_finger_args '*:finger targets:->finger-targets' && ret=0 case "$state" in finger-targets) - _user_at_host -t other-accounts "$@" + _user_at_host -t other-accounts "$@" && return ;; esac + +return ret -- cgit 1.4.1