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/_prcs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Completion/Unix/Command/_prcs') diff --git a/Completion/Unix/Command/_prcs b/Completion/Unix/Command/_prcs index 29a1c8652..46e441c34 100644 --- a/Completion/Unix/Command/_prcs +++ b/Completion/Unix/Command/_prcs @@ -1,6 +1,6 @@ #compdef prcs -local curcontext="$curcontext" state line subcmds +local curcontext="$curcontext" state line subcmds ret=1 typeset -A opt_args # lookup project names in the repository @@ -34,7 +34,7 @@ _prcs_arguments() { _arguments -C \ '(* -)'{-h,-H,--help}'[print out help]' \ '(* -)--version[display program version]' \ - '*:: :->subcmd' && return 0 + '*:: :->subcmd' && ret=0 if (( CURRENT == 1 )); then subcmds=( @@ -54,8 +54,8 @@ if (( CURRENT == 1 )); then 'unpackage:unpackage project in packagefile' ) - _describe -t commands 'prcs command' subcmds - return + _describe -t commands 'prcs command' subcmds && ret=0 + return ret fi curcontext="${curcontext%:*}-$words[1]:" -- cgit v1.2.3