zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Glitch in _zle completion function
Date: Tue, 24 Feb 2009 20:39:38 -0800	[thread overview]
Message-ID: <090224203938.ZM8364@torch.brasslantern.com> (raw)

schaefer<501> zle blather <TAB>
_zle:shift:69: shift count must be <= $#
_zle:shift:70: shift count must be <= $#
_zle:shift:69: shift count must be <= $#
_zle:shift:70: shift count must be <= $#
_zle:shift:69: shift count must be <= $#
_zle:shift:70: shift count must be <= $#
_zle:shift:69: shift count must be <= $#
_zle:shift:70: shift count must be <= $#
schaefer<501> zle blather 
Completing widget arguments

(the shell printed a newline after all those errors, redrew the prompt,
and then displayed "Completing widget arguments" per my format style,
all from a single tab press).

What's happening is that we call _arguments to set $state, then go into
the "while (( $#state )): do" loop, inside which _arguments is called a
second time, which clears $state and $context so that the pair of shifts
at lines 69-70 subsequently fail.


                 reply	other threads:[~2009-02-25  4:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=090224203938.ZM8364@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@sunsite.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).