From 38866510c7c76cd4f84d0ba02c0f0914a56a17f2 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 24 Dec 2022 12:27:17 +0200 Subject: [PATCH] ; * src/xdisp.c (redisplay_internal): Reinstate the FRAME_LIVE_P test. --- src/xdisp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xdisp.c b/src/xdisp.c index 4e5250486f5..ea2d11e8b4e 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -16867,6 +16867,10 @@ redisplay_internal (void) else if (!REDISPLAY_SOME_P ()) f->redisplay = true; + /* The X error handler may have deleted that frame. */ + if (!FRAME_LIVE_P (f)) + continue; + /* Any scroll bars which redisplay_windows should have nuked should now go away. */ if (gcscrollbars && FRAME_TERMINAL (f)->judge_scroll_bars_hook) -- 2.39.5