Avoid crashes in redisplay in batch-mode testing

* src/xdisp.c (try_window_id): Don't crash for "initial" frame.
(Bug#72765)
This commit is contained in:
Eli Zaretskii 2024-09-10 14:43:52 +03:00
parent ba2190e1ae
commit 5c55c860db

View file

@ -22089,7 +22089,8 @@ try_window_id (struct window *w)
/* Window must either use window-based redisplay or be full width. */ /* Window must either use window-based redisplay or be full width. */
if (!FRAME_WINDOW_P (f) if (!FRAME_WINDOW_P (f)
&& (!FRAME_LINE_INS_DEL_OK (f) && (FRAME_INITIAL_P (f)
|| !FRAME_LINE_INS_DEL_OK (f)
|| !WINDOW_FULL_WIDTH_P (w))) || !WINDOW_FULL_WIDTH_P (w)))
GIVE_UP (4); GIVE_UP (4);