diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-12 15:28:24 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-12 15:28:24 +0000 |
commit | e6282df1155e8d9b08b2e518a452c1997973f1ce (patch) | |
tree | b0c8ed7e8512cc4397ae7df6d138ea66147565b3 /Completion/Base/_vars | |
parent | 167b0ae3b98938f75287dcf2e112d41a03532c5f (diff) | |
download | zsh-e6282df1155e8d9b08b2e518a452c1997973f1ce.tar.gz zsh-e6282df1155e8d9b08b2e518a452c1997973f1ce.tar.xz zsh-e6282df1155e8d9b08b2e518a452c1997973f1ce.zip |
manual/8630
Diffstat (limited to 'Completion/Base/_vars')
-rw-r--r-- | Completion/Base/_vars | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Completion/Base/_vars b/Completion/Base/_vars index a81a49f48..43cdf5d2c 100644 --- a/Completion/Base/_vars +++ b/Completion/Base/_vars @@ -4,8 +4,6 @@ # `vared compconfig[<TAB>'. However, in this version the [ must be # added by hand. -local expl - if [[ $PREFIX = *\[* ]]; then local var=${PREFIX%%\[*} local elt="${PREFIX#*\]}${SUFFIX%\]}" @@ -16,9 +14,15 @@ if [[ $PREFIX = *\[* ]]; then addclose=(-S ']') fi if [[ ${(tP)var} = assoc* ]]; then + local expl + + _tags subscript association-keys || return 1 + _description expl 'association key' compadd "$expl[@]" $addclose - ${(kP)var} fi else - _parameter + _tags any parameters || return 1 + + _parameters fi |