Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

complist bug and PATCH: spelling



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



Messages sorted by: Reverse Date, Date, Thread, Author