Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug: Callback to widget set with `zle -Fw <widget>` shouldn't change $LASTWIDGET
On Thu, Nov 17, 2022 at 2:06 PM Marlon Richert <marlon.richert@xxxxxxxxx> wrote:
>
> It's not the "inverted meaning" here that is the bug. `zle -F` (with
> or without -w) just shouldn't ever change $LASTWIDGET in the first
> place. It breaks a lot of existing widget functions and there is no
> possible workaround.
Relevant: https://www.zsh.org/mla/workers/2019/msg00204.html
Especially this part:
> The same branch also adds -W option to zle widget command. This
> option instructs zle to keep LASTWIDGET unchanged.
This part of the patch wasn't applied and the code is long gone (I
didn't attach it to the email) but it's fairly straightforward to
implement.
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author