Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG] zle_highlight fails to highlight suffix added with compadd -R
- X-seq: zsh-workers 49394
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Cc: Marlon Richert <marlon.richert@xxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [BUG] zle_highlight fails to highlight suffix added with compadd -R
- Date: Tue, 7 Sep 2021 19:43:37 -0700
- Archived-at: <https://zsh.org/workers/49394>
- In-reply-to: <CAHYJk3RJA+=owtdOkf85gO2nchgq2VkzXvHYAFJUU-QrkMQk+g@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAHLkEDs6wmFE+gPXoJUuiVBHXX9d6umbms53tK65KnDsSFBugg@mail.gmail.com> <CAH+w=7Y0yT7d+HBuZ37dWGfSf_CQJfHp5Z9h9d9WTuCgRL_Kow@mail.gmail.com> <CAHYJk3RJA+=owtdOkf85gO2nchgq2VkzXvHYAFJUU-QrkMQk+g@mail.gmail.com>
On Tue, Sep 7, 2021 at 7:13 PM Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>
> On 9/8/21, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> > Does anyone remember why suffixfunclen needed to
> > be stored separately?
>
> I didn't make any attempt to understand the code, but can you usefully
> specify both -r and -R? (it doesn't appear to be an error).
You mean in the same call to compadd ? Sure. The argument passed to
-r just determines when to invoke the function, it doesn't provide a
different suffix.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author