From 35b2633ad941966f5fca07b625a594a5b68c0fdb Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Mon, 15 Nov 1999 12:01:46 +0000 Subject: manual/8639 --- Completion/Builtins/_zle | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'Completion/Builtins/_zle') diff --git a/Completion/Builtins/_zle b/Completion/Builtins/_zle index 21997ef62..8e8017817 100644 --- a/Completion/Builtins/_zle +++ b/Completion/Builtins/_zle @@ -3,11 +3,8 @@ local expl if [[ "$words[2]" = -N && CURRENT -eq 3 ]]; then - _tags any:argument functions || return 1 - _description expl 'widget shell function' - compadd "$expl[@]" "$@" - "${(k@)functions}" && ret=0 + _wanted -C -N functions expl 'widget shell function' && + compadd "$expl[@]" "$@" - "${(k@)functions}" && ret=0 else - _tags any:argument widgets || return 1 - _description expl widget - compadd "$expl[@]" - "${(@k)widgets}" + _wanted widgets expl widget && compadd "$expl[@]" - "${(@k)widgets}" fi -- cgit 1.4.1