* zle_tricky.c:659: BUG: 0 <= wb (4) <= zlemetacs (2) <= we (5) is not true!
@ 2015-10-29 13:12 Daniel Shahaf
2015-10-29 14:15 ` Peter Stephenson
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Shahaf @ 2015-10-29 13:12 UTC (permalink / raw)
To: zsh-workers
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
It's this line from docomplete():
DPUTS3(wb < 0 || zlemetacs < wb || zlemetacs > we,
"BUG: 0 <= wb (%d) <= zlemetacs (%d) <= we (%d) is not true!",
wb, zlemetacs, we);
That line was last mentioned in users/20042 (in the discussions about
whether to commit 34781).
It reproduces in 5.0.7 too (didn't check older).
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: zle_tricky.c:659: BUG: 0 <= wb (4) <= zlemetacs (2) <= we (5) is not true!
2015-10-29 13:12 zle_tricky.c:659: BUG: 0 <= wb (4) <= zlemetacs (2) <= we (5) is not true! Daniel Shahaf
@ 2015-10-29 14:15 ` Peter Stephenson
0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2015-10-29 14:15 UTC (permalink / raw)
To: zsh-workers
On Thu, 29 Oct 2015 13:12:53 +0000
Daniel Shahaf <d.s@daniel.shahaf.name> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-29 14:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-29 13:12 zle_tricky.c:659: BUG: 0 <= wb (4) <= zlemetacs (2) <= we (5) is not true! Daniel Shahaf
2015-10-29 14:15 ` 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).