mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-12-04 05:01:27 +01:00
manual/8992
This commit is contained in:
parent
d5d015115c
commit
188e6569db
49 changed files with 1061 additions and 699 deletions
|
|
@ -21,14 +21,14 @@ elif [[ ${(Pt)${compstate[parameter]}} = array* ]]; then
|
|||
while _tags; do
|
||||
if _requested -V indexes expl 'array index'; then
|
||||
ind=( {1..${#${(P)${compstate[parameter]}}}} )
|
||||
if _style indexes verbose; then
|
||||
if zstyle -t ":completion${curcontext}:indexes" verbose; then
|
||||
list=()
|
||||
for i in "$ind[@]"; do
|
||||
[[ "$i" = ${PREFIX}*${SUFFIX} ]] &&
|
||||
list=( "$list[@]"
|
||||
"${i}:$(print -D ${(P)${compstate[parameter]}[$i]})" )
|
||||
done
|
||||
compdisplay list ' -- ' "$list[@]"
|
||||
zformat -a list ' -- ' "$list[@]"
|
||||
disp=( -d list)
|
||||
else
|
||||
disp=()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue