From 4a63761cf0b203cd1eab87aaad457b431e292b6a Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Wed, 8 Sep 1999 14:20:58 +0000 Subject: zsh-workers/7722 --- Completion/User/_yp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Completion/User/_yp') diff --git a/Completion/User/_yp b/Completion/User/_yp index 85d783b06..bf8090b6a 100644 --- a/Completion/User/_yp +++ b/Completion/User/_yp @@ -88,7 +88,11 @@ if [[ "$state" = map* ]]; then local expl _description expl 'map name' - compadd "$expl[@]" - "$_yp_cache_maps[@]" && ret=0 + + # The `-M ...' allows `pa.n' to complete to `passwd.byname'. + + compadd "$expl[@]" -M 'l:.|by=by l:.|=by r:|.=* r:|=*' - \ + "$_yp_cache_maps[@]" && ret=0 if [[ $+options[-t] -eq 0 && "$state" != maponly ]]; then _description expl 'nicknames' compadd "$expl[@]" - "$_yp_cache_nicks[@]" && ret=0 -- cgit 1.4.1