* complist bug and PATCH: spelling
@ 1999-12-17 13:47 Oliver Kiddle
1999-12-20 22:24 ` Peter Stephenson
0 siblings, 1 reply; 2+ messages in thread
From: Oliver Kiddle @ 1999-12-17 13:47 UTC (permalink / raw)
To: Zsh workers
The menu selection doesn't seem to be working. I get:
SELECTMIN=0
cd <tab><tab> -- menu selection doesn't start
echo $SELECTMIN
9999999 -- and SELECTMIN has been messed up
My second, unrelated point is that the plural of index is indices, not
indexes. This patch fixes that, hopefully without messing up too many
people's zstyles.
Oliver
*** Doc/Zsh/compsys.yo.old Fri Dec 17 11:58:48 1999
--- Doc/Zsh/compsys.yo Fri Dec 17 11:59:21 1999
***************
*** 477,484 ****
item(tt(hosts))(
for hostnames
)
! item(tt(indexes))(
! used for array indexes
)
item(tt(jobs))(
used for jobs
--- 477,484 ----
item(tt(hosts))(
for hostnames
)
! item(tt(indices))(
! used for array indices
)
item(tt(jobs))(
used for jobs
*** Completion/Base/_subscript.old Fri Dec 17 11:53:31 1999
--- Completion/Base/_subscript Fri Dec 17 11:55:38 1999
***************
*** 16,27 ****
elif [[ ${(Pt)${compstate[parameter]}} = array* ]]; then
local list i j ret=1 disp
! _tags indexes parameters
while _tags; do
! if _requested -V indexes expl 'array index'; then
ind=( {1..${#${(P)${compstate[parameter]}}}} )
! if zstyle -t ":completion${curcontext}:indexes" verbose; then
list=()
for i in "$ind[@]"; do
[[ "$i" = ${PREFIX}*${SUFFIX} ]] &&
--- 16,27 ----
elif [[ ${(Pt)${compstate[parameter]}} = array* ]]; then
local list i j ret=1 disp
! _tags indices parameters
while _tags; do
! if _requested -V indices expl 'array index'; then
ind=( {1..${#${(P)${compstate[parameter]}}}} )
! if zstyle -t ":completion${curcontext}:indices" verbose; then
list=()
for i in "$ind[@]"; do
[[ "$i" = ${PREFIX}*${SUFFIX} ]] &&
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-12-20 22:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-17 13:47 complist bug and PATCH: spelling Oliver Kiddle
1999-12-20 22:24 ` Peter Stephenson
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).