Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug in compdescribe with matcher 'b:-=+'
- X-seq: zsh-workers 49275
- From: Marlon Richert <marlon.richert@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Cc: Jun T <takimoto-j@xxxxxxxxxxxxxxxxx>, Lawrence Velázquez <larryv@xxxxxxx>
- Subject: Re: Bug in compdescribe with matcher 'b:-=+'
- Date: Thu, 12 Aug 2021 15:03:27 +0300
- Archived-at: <https://zsh.org/workers/49275>
- In-reply-to: <CAHLkEDtdPx16=KpiaSk28C8Q3ix_gQtm-kZxu4Yaia6kL+Yexg@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAHLkEDvOw87fPt9W9tXCEZda3psvmKipvXoX+MaDt6+EqbHH-g@mail.gmail.com> <C9FR7XFN5KB4.1N0C49A760PB2@kbvv> <CAHLkEDuqOAJqMdCx0Jgzcpz+5e4OhNrvJaa5=PpqwR-UkzKLOA@mail.gmail.com> <CAH+w=7ZN2vS5H67PHQ6j5ecmeP3YU5W+gT1uBb81c4CGdPhjrA@mail.gmail.com> <CAHLkEDtdPx16=KpiaSk28C8Q3ix_gQtm-kZxu4Yaia6kL+Yexg@mail.gmail.com>
For future reference: This was fixed in workers 49211 (commit
b4dff9a8e85802afcd52e7798176ebeb5e662da9).
Thanks, Jun T!
On Mon, Jun 14, 2021 at 11:28 AM Marlon Richert
<marlon.richert@xxxxxxxxx> wrote:
>
> Is there anybody who could look into this?
>
> On Mon, Feb 22, 2021 at 6:31 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> >
> > (Was zsh-newuser-install)
> >
> > On Mon, Feb 22, 2021 at 12:14 AM Marlon Richert
> > <marlon.richert@xxxxxxxxx> wrote:
> > >
> > > On Mon, Feb 22, 2021 at 5:56 AM Paul <GammaFunction@xxxxxxxxxxx> wrote:
> > > >
> > > > https://i.imgur.com/d7polcy.png
> > >
> > > I can reproduce it with just this:
> > >
> > > autoload -Uz compinit; compinit
> > > zstyle ':completion:*:functions' ignored-patterns '[[:punct:]]*[[:alnum:]]*'
> > > zstyle ':completion:*:options' matcher 'b:-=+'
> >
> > When the matcher 'b:-=+' is present, this test at line 129 of _describe:
> >
> > +_describe:129> compdescribe -g csl2 _args _tmpm _tmpd
> >
> > which is the conditional for a "while" loop, succeeds 17 times, each
> > time executing
> >
> > +_describe:134> compadd -E10 -Q -M 'r:|[_-]=* r:|=*' -M 'b:-=+'
> > -J -default- -X option -d _tmpd -a _tmpm
> >
> > This results in 30 matches being generated, instead of the 9 when that
> > matcher is omitted (in which case compdescribe never succeeds).
> >
> > I believe the issue is that compdescribe ("cd_get" in
> > Src/Zle/computil.c) is not propagating the correct description into
> > _tmpd, but that's the extent of my understanding of these internals.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author