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

Re: [PATCH] Re: Bug: Callback to widget set with `zle -Fw <widget>` shouldn't change $LASTWIDGET



> On 16/07/2023 11:28 dana <dana@xxxxxxx> wrote:
> On Tue 17 Jan 2023, at 12:00, Bart Schaefer wrote:
> > My concern is that the Thingy pointer becomes invalid
> 
> I think this was justified
> 
> I've just tried running a new HEAD build for the first time in several months
> and found that back-spacing causes the shell to crash.

If this happens again, you might get some information by going back up the
stack in the debugger and see what was running in any runshfunc(s) or
doshfunc(s) there.  You probably just need the name, then you can retrieve
the contents of that function from a live shell.

Having said that, Bart's previous suggestion of saving the name instead of
the pointer might be the fix anyway.

pws




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