From 8746ae9979dc8cccef856300f14f6d98b4285d5a Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Wed, 13 Oct 1999 17:50:30 +0000 Subject: zsh-workers/8231 --- Completion/User/_yp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Completion/User/_yp') diff --git a/Completion/User/_yp b/Completion/User/_yp index bf8090b6a..e06f42a29 100644 --- a/Completion/User/_yp +++ b/Completion/User/_yp @@ -1,7 +1,7 @@ #compdef ypcat ypmatch yppasswd ypwhich ypset ypserv ypbind yppush yppoll ypxfr domainname local line state ret=1 -typeset -A options +typeset -A opt_args if (( ! $+_yp_cache_maps )); then _yp_cache_maps=( "${(@)${(@f)$(ypwhich -m)}%% *}" ) @@ -93,7 +93,7 @@ if [[ "$state" = map* ]]; then compadd "$expl[@]" -M 'l:.|by=by l:.|=by r:|.=* r:|=*' - \ "$_yp_cache_maps[@]" && ret=0 - if [[ $+options[-t] -eq 0 && "$state" != maponly ]]; then + if [[ $+opt_args[-t] -eq 0 && "$state" != maponly ]]; then _description expl 'nicknames' compadd "$expl[@]" - "$_yp_cache_nicks[@]" && ret=0 fi -- cgit 1.4.1