Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zle_tricky.c:659: BUG: 0 <= wb (4) <= zlemetacs (2) <= we (5) is not true!
- X-seq: zsh-workers 37013
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: zle_tricky.c:659: BUG: 0 <= wb (4) <= zlemetacs (2) <= we (5) is not true!
- Date: Thu, 29 Oct 2015 14:15:14 +0000
- In-reply-to: <20151029131253.GB31753@tarsus.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: Samsung Cambridge Solution Centre
- References: <20151029131253.GB31753@tarsus.local2>
On Thu, 29 Oct 2015 13:12:53 +0000
Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> To reproduce:
>
> $ zsh -f
> % echo $ZSH_PATCHLEVEL
> 0920bc6881af979ec538c8ab635c07f52601de4b
> % : 2>1[move the cursor such that LBUFFER=": "][press <TAB>]
> % : zle_tricky.c:659: BUG: 0 <= wb (4) <= zlemetacs (2) <= we (5) is not true!
> : 2>1
inredir and linredir in get_comp_string() probably have something to do
with this. It looks like the "word" it thinks it's on is the "1" after
the ">", rather than the "2" before it.
It would probably be sensible to take the attitude that we just shrug
our shoulders until somebody volunteers to rewrite get_comp_string()
properly to use a state machine.
However, sense and completion code maintainance have never had a lot to
do with one another.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author