zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <opk@u.genie.co.uk>
To: Zsh workers <zsh-workers@sunsite.auc.dk>
Subject: complist bug and PATCH: spelling
Date: Fri, 17 Dec 1999 13:47:26 +0000	[thread overview]
Message-ID: <385A3EEE.15917530@u.genie.co.uk> (raw)

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} ]] &&


             reply	other threads:[~1999-12-17 13:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-17 13:47 Oliver Kiddle [this message]
1999-12-20 22:24 ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=385A3EEE.15917530@u.genie.co.uk \
    --to=opk@u.genie.co.uk \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).