again, ensure we get _some_ error message out on stack overflow

akkartik
Mar 1, 2025, 8:57 PM
Y43RSEGNKZFXHQV66Y3IOMITKSIIPMZIYN52BEDTC4RE4ZA3R3KAC

Dependencies

  • [2] HVXZLNCC send errors from event handlers to output editor

Change contents

  • edit in 0102-send_errors_to_output at line 2
    [2.625]
    [2.625]
    if err:match('stack overflow') then
    -- do the bare minimum to maximize chances of showing an error
    table.insert(Current_pane.output_editor_state.lines, {data=err})
    Current_pane.output_editor_state.cursor1 = {line=#Current_pane.output_editor_state.lines, pos=1}
    Text.redraw_all(Current_pane.output_editor_state)
    end