From d8f703027345170c7bc820ed7808e693dd1377d6 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Sat, 25 Mar 2000 00:21:44 +0000 Subject: zsh-3.1.6-dev-20 --- Completion/X/.distfiles | 8 ++++---- Completion/X/_x_colormapid | 4 ++-- Completion/X/_xwit | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'Completion/X') diff --git a/Completion/X/.distfiles b/Completion/X/.distfiles index 475bba785..42c69d888 100644 --- a/Completion/X/.distfiles +++ b/Completion/X/.distfiles @@ -1,7 +1,7 @@ DISTFILES_SRC=' .distfiles - _x_arguments _x_borderwidth _x_color _x_cursor _x_display _x_extension - _x_font _x_geometry _x_keysym _x_locale _x_modifier _x_name _x_resource - _x_selection_timeout _x_title _x_window _xdvi _xfig _xmodmap _xrdb - _xt_arguments _xt_session_id _xterm _xutils _xv + _x_arguments _x_borderwidth _x_color _x_colormapid _x_cursor _x_display + _x_extension _x_font _x_geometry _x_keysym _x_locale _x_modifier + _x_name _x_resource _x_selection_timeout _x_title _x_window _xdvi _xfig + _xmodmap _xrdb _xt_arguments _xt_session_id _xterm _xutils _xv _xwit ' diff --git a/Completion/X/_x_colormapid b/Completion/X/_x_colormapid index 20e82fa44..4fe6aac42 100644 --- a/Completion/X/_x_colormapid +++ b/Completion/X/_x_colormapid @@ -2,7 +2,7 @@ local expl list desc -_wanted colormapids || return 1 +_wanted colormapids expl 'colormap id' || 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 -_loop colormapids expl 'colormap id' compadd "$@" "$desc[@]" - "${(@)list%% *}" +compadd "$expl[@]" "$@" "$desc[@]" - "${(@)list%% *}" diff --git a/Completion/X/_xwit b/Completion/X/_xwit index 4a5242e18..5e14fec89 100644 --- a/Completion/X/_xwit +++ b/Completion/X/_xwit @@ -16,8 +16,8 @@ _xwit_guard () { _xwit_compopts () { local expl - _wanted options expl option compadd - ${(k)no[(R)*~0]} || - _loop options expl option compadd - ${(k)no} + _description options expl option + compadd "$expl[@]" - ${(k)no[(R)*~0]} || compadd "$expl[@]" - ${(k)no} } _regex_arguments _xwit_parse \ -- cgit 1.4.1