about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-11-22 08:57:54 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-11-22 08:57:54 +0000
commit3d680025994751fc87c9824d1299418585ef1a50 (patch)
treea85a4300d9ff9cf2eddbc9a9eade63e64dd922a2
parent4eb4d5e0d66e50edb1297ef8c879ead8149c3aef (diff)
downloadzsh-3d680025994751fc87c9824d1299418585ef1a50.tar.gz
zsh-3d680025994751fc87c9824d1299418585ef1a50.tar.xz
zsh-3d680025994751fc87c9824d1299418585ef1a50.zip
* 13181: Completion/Debian/_apt: add an action for _alternative.
-rw-r--r--ChangeLog4
-rw-r--r--Completion/Debian/_apt4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 76e30c67d..00294ed93 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-11-22  Tanaka Akira  <akr@zsh.org>
+
+	* 13181: Completion/Debian/_apt: add an action for _alternative.
+
 2000-11-20  Bart Schaefer  <schaefer@zsh.org>
 
 	* E. Jay Birkenbilt: 13171, 13172: Completion/User/_rlogin,
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}"