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

Re: Segfault upon interrupt of completion - opinions?



On Sat, Feb 8, 2025 at 1:19 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Sat, Feb 8, 2025 at 1:08 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> >
> > Option 1:  zle_tricky.c:878 should not run the after-hooks on interrupt.
> >
> > Option 2:  runhookdef() should not run any hooks if there's been an
> > interrupt.  This probably has wide-reaching side effects, so doesn't
> > seem viable?
> >
> > Option 3:  Every hook function has to make its own decision about
> > interrupts.  We can fix this specific case in after_complete().
>
> Option 4: domenuselect() can be a no-op following interrupt.

As long as I'm soliciting advice -- what other ZLE state could/should
be checked here?  Possibly "resetneeded"?  Anything else?




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