From e3e5f4d61c610dea3862c998db3394ece64aced0 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Fri, 24 Mar 2000 12:56:54 +0000 Subject: zsh-workers/10233 --- Completion/X/_x_colormapid | 4 ++-- Completion/X/_xwit | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Completion/X/_x_colormapid b/Completion/X/_x_colormapid index 4fe6aac42..20e82fa44 100644 --- a/Completion/X/_x_colormapid +++ b/Completion/X/_x_colormapid @@ -2,7 +2,7 @@ local expl list desc -_wanted colormapids expl 'colormap id' || return 1 +_wanted colormapids || return 1 list=(${(f)"$(xprop -root -f RGB_COLOR_MAP 32xcccccccxx ': $0\n'|awk -F'[ ():]' '/^[a-zA-Z_]+\(RGB_COLOR_MAP\)/ {print $5, "--", $1}')"}) @@ -12,4 +12,4 @@ else desc=() fi -compadd "$expl[@]" "$@" "$desc[@]" - "${(@)list%% *}" +_loop colormapids expl 'colormap id' compadd "$@" "$desc[@]" - "${(@)list%% *}" diff --git a/Completion/X/_xwit b/Completion/X/_xwit index e86443a32..8c988721d 100644 --- a/Completion/X/_xwit +++ b/Completion/X/_xwit @@ -16,8 +16,8 @@ _xwit_guard () { _xwit_compopts () { local expl - _description options expl option - compadd "$expl[@]" - ${(k)no[(R)*~0]} || compadd "$expl[@]" - ${(k)no} + _wanted options expl option compadd - ${(k)no[(R)*~0]} || + _loop options expl option compadd - ${(k)no} } _regex_arguments _xwit_parse \ -- cgit 1.4.1