about summary refs log tree commit diff
path: root/Completion/User/_yp
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/User/_yp')
-rw-r--r--Completion/User/_yp4
1 files changed, 2 insertions, 2 deletions
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