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

Re: bug with completion in quotes



On Sun, 12 Oct 2014 18:35:47 +0100
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> wrote:

> On Sun, 12 Oct 2014 00:37:09 +0200
> Oliver Kiddle <okiddle@xxxxxxxxxxx> wrote:
> > Compiled with --enable-zsh-debug, I get bugs listed when completing
> > inside $' style quotes whenever there's stuff after the cursor:
> > 
> > <tab> appears at cursor position
> > 
> > % : $'<tab>x
> > utils.c:5893: BUG: unterminated $' substitution
> > % : $'<tab>x'
> > zle_tricky.c:666: BUG: 0 <= wb <= zlemetacs <= we is not true!
> > 
> > The line containing the first message was added in workers/22026 from
> > about 2006.
> 
> The chief suspect is set_comp_sep()

Although that function is a permanent black stain on my soul, before I
send others on wild goose chases I don't think it can be the culprit
here since I think it's *only* used for recursive quotes.  I'm now
wondering about get_comp_string() from line 1676 in zle_tricky.c,
including the grumpy comment I would guess is from me, since they usually
are, around line 1686.  However, I haven't gone into the nitty gritty.

pws



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