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

Re: [BUG] zle_highlight fails to highlight suffix added with compadd -R



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