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/_yp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/User/_yp b/Completion/User/_yp
index d25533e35..1ca374972 100644
--- a/Completion/User/_yp
+++ b/Completion/User/_yp
@@ -14,7 +14,7 @@ if (( ! $+_yp_cache_maps )); then
   )
 fi
 
-case "${words[1]:t}" in
+case "$service" in
 ypcat)
   _arguments -C -s "$_yp_args[@]" ':map name:->map' && ret=0
   ;;