diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-02-09 16:29:22 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-02-09 16:29:22 +0000 |
commit | 74ccd8d5a3d9e6f7e14d57f73d58d1319b99e9ca (patch) | |
tree | a1fe3b909e93ec0b05a147e9cc8e0b7c7564af1c /Completion/Core/_description | |
parent | 06cd60e1cfea19da528c59453f9c15edae2de41e (diff) | |
download | zsh-74ccd8d5a3d9e6f7e14d57f73d58d1319b99e9ca.tar.gz zsh-74ccd8d5a3d9e6f7e14d57f73d58d1319b99e9ca.tar.xz zsh-74ccd8d5a3d9e6f7e14d57f73d58d1319b99e9ca.zip |
zsh-workers/9635
Diffstat (limited to 'Completion/Core/_description')
-rw-r--r-- | Completion/Core/_description | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/Completion/Core/_description b/Completion/Core/_description index b35889c4d..06b54e807 100644 --- a/Completion/Core/_description +++ b/Completion/Core/_description @@ -1,14 +1,11 @@ #autoload -local name gropt format gname hidden hide match ign +local name gropt=-J format gname hidden hide match opts -gropt=(-J) -hide=() -match=() -ign=() +opts=() if [[ "$1" = -([12]|)[VJ] ]]; then - gropt=("$1") + gropt="$1" shift fi @@ -24,14 +21,14 @@ zstyle -s ":completion:${curcontext}:$1" format format || zstyle -s ":completion:${curcontext}:$1" hidden hidden if [[ "$hidden" = (all|yes|true|1|on) ]]; then [[ "$hidden" = all ]] && format='' - hide=(-n) + opts=(-n) fi zstyle -s ":completion:${curcontext}:$1" group-name gname && [[ -z "$gname" ]] && gname="$1" zstyle -s ":completion:${curcontext}:$1" matcher match && - match=(-M "${(q)match}") + opts=($opts -M "${(q)match}") if zstyle -a ":completion:${curcontext}:$1" ignored-patterns _comp_ignore; then - ign=(-F _comp_ignore) + opts=( $opts -F _comp_ignore) else _comp_ignore=() fi @@ -41,15 +38,15 @@ shift 2 if [[ -n "$gname" ]]; then if [[ -n "$format" ]]; then - eval "${name}=($hide $match $ign $gropt ${(q)gname} -X \"${format}\")" + eval "${name}=($opts $gropt ${(q)gname} -X \"${format}\")" else - eval "${name}=($hide $match $ign $gropt ${(q)gname})" + eval "${name}=($opts $gropt ${(q)gname})" fi else if [[ -n "$format" ]]; then - eval "${name}=($hide $match $ign $gropt -default- -X \"${format}\")" + eval "${name}=($opts $gropt -default- -X \"${format}\")" else - eval "${name}=($hide $match $ign $gropt -default-)" + eval "${name}=($opts $gropt -default-)" fi fi |