]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid crashes in redisplay in batch-mode testing
authorEli Zaretskii <eliz@gnu.org>
Tue, 10 Sep 2024 11:43:52 +0000 (14:43 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sat, 14 Sep 2024 20:20:36 +0000 (22:20 +0200)
* src/xdisp.c (try_window_id): Don't crash for "initial" frame.
(Bug#72765)

(cherry picked from commit 5c55c860db7891d1301d0bac78c03a8751ebe642)

src/xdisp.c

index 18834c6b7819f56883a35b8f7b6e72a64034bda3..495ec821352d3c5496207e8d7c591478b1780d78 100644 (file)
@@ -22182,7 +22182,8 @@ try_window_id (struct window *w)
 
   /* Window must either use window-based redisplay or be full width.  */
   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)))
     GIVE_UP (4);