diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-05-31 09:38:25 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-05-31 09:38:25 +0000 |
commit | fd25b24df6b4f098944c4994195d3894a27a8208 (patch) | |
tree | 53f7f940844ab34c7349506622fc8241c782f98c /Completion/Base/_subscript | |
parent | 4629133ad33dacef459ad9fa5ca438836a1be9fb (diff) | |
download | zsh-fd25b24df6b4f098944c4994195d3894a27a8208.tar.gz zsh-fd25b24df6b4f098944c4994195d3894a27a8208.tar.xz zsh-fd25b24df6b4f098944c4994195d3894a27a8208.zip |
use compadd -[ak] (11549)
Diffstat (limited to 'Completion/Base/_subscript')
-rw-r--r-- | Completion/Base/_subscript | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Base/_subscript b/Completion/Base/_subscript index 60d45370b..e3bde552a 100644 --- a/Completion/Base/_subscript +++ b/Completion/Base/_subscript @@ -12,7 +12,7 @@ elif [[ ${(Pt)${compstate[parameter]}} = assoc* ]]; then [[ "$RBUFFER" != \]* ]] && suf=']' _wanted association-keys expl 'association key' \ - compadd -S "$suf" - "${(@kP)${compstate[parameter]}}" + compadd -S "$suf" -k "$compstate[parameter]" elif [[ ${(Pt)${compstate[parameter]}} = array* ]]; then local list i j ret=1 disp @@ -39,10 +39,10 @@ elif [[ ${(Pt)${compstate[parameter]}} = array* ]]; then if [[ "$RBUFFER" = \]* ]]; then _all_labels -V indexes expl 'array index' \ - compadd -S '' "$disp[@]" - "$ind[@]" && ret=0 + compadd -S '' "$disp[@]" -a ind && ret=0 else _all_labels -V indexes expl 'array index' \ - compadd -S ']' "$disp[@]" - "$ind[@]" && ret=0 + compadd -S ']' "$disp[@]" -a ind && ret=0 fi fi _requested parameters && _parameters && ret=0 |