diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-03-09 06:27:10 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-03-09 06:27:10 +0000 |
commit | aaf8cfa5895e80c1638059c9fc6a349e561cf6ad (patch) | |
tree | f1d395b90bb91b0f8caa09cd0e90ae962a34a661 | |
parent | 1b5252bf38563745472392ae17462d3c752c046d (diff) | |
download | zsh-aaf8cfa5895e80c1638059c9fc6a349e561cf6ad.tar.gz zsh-aaf8cfa5895e80c1638059c9fc6a349e561cf6ad.tar.xz zsh-aaf8cfa5895e80c1638059c9fc6a349e561cf6ad.zip |
zsh-workers/10009
-rw-r--r-- | Completion/Base/_subscript | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Completion/Base/_subscript b/Completion/Base/_subscript index 5917c8234..c0c0b790d 100644 --- a/Completion/Base/_subscript +++ b/Completion/Base/_subscript @@ -24,9 +24,12 @@ elif [[ ${(Pt)${compstate[parameter]}} = array* ]]; then if zstyle -T ":completion:${curcontext}:indexes" verbose; then list=() for i in "$ind[@]"; do - [[ "$i" = ${PREFIX}*${SUFFIX} ]] && + if [[ "$i" = ${PREFIX}*${SUFFIX} ]]; then list=( "$list[@]" "${i}:$(print -D ${(P)${compstate[parameter]}[$i]})" ) + else + list=( "$list[@]" '' ) + fi done zformat -a list ' -- ' "$list[@]" disp=( -d list) |