From 3d680025994751fc87c9824d1299418585ef1a50 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Wed, 22 Nov 2000 08:57:54 +0000 Subject: * 13181: Completion/Debian/_apt: add an action for _alternative. --- Completion/Debian/_apt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Completion/Debian') diff --git a/Completion/Debian/_apt b/Completion/Debian/_apt index cfc6880df..581b4ff12 100644 --- a/Completion/Debian/_apt +++ b/Completion/Debian/_apt @@ -97,13 +97,13 @@ tmp3=(--${(M)^long_hasarg:#$~tmp1} --${(M)^long_configfile:#$~tmp1} --${(M)^long _describe -o option tmp2 -- tmp3 -S= -- bool_prefix -S ""' comp_long_prefix=\ -'tmp1="${(j:|:)${(@)${(@M)${(@s:,:)${(@kj:,:)num_options[(R)*~0]}}:#--*}#--}}" +'{tmp1="${(j:|:)${(@)${(@M)${(@s:,:)${(@kj:,:)num_options[(R)*~0]}}:#--*}#--}}" tmp2=($_ra_left${(M)^long_bool:#$~tmp1} $_ra_left${(M)^long_intlevel:#$~tmp1}) tmp3=($_ra_left${(M)^long_hasarg:#$~tmp1} $_ra_left${(M)^long_configfile:#$~tmp1} $_ra_left${(M)^long_arbitem:#$~tmp1}) tmp1="${(j:|:)${(@)${(@M)${(@s:,:)${(@kj:,:)num_options[(R)*~0]}}:#-?}#-}}" tmp2=("$tmp2[@]" $_ra_left${(M)^short_bool:#$~tmp1} $_ra_left${(M)^short_intlevel:#$~tmp1}) tmp3=("$tmp3[@]" $_ra_left${(M)^short_hasarg:#$~tmp1} $_ra_left${(M)^short_configfile:#$~tmp1} $_ra_left${(M)^short_arbitem:#$~tmp1}) -_describe -o option tmp2 -- tmp3 -S=' +_describe -o option tmp2 -- tmp3 -S=}' comp_opt='{{ ! zstyle -T ":completion:${curcontext}:options" prefix-needed || [[ "$PREFIX" = -* ]] }'" && { $comp_short; $comp_long }}" comp_short="{$comp_short}" -- cgit 1.4.1