Avoid rare assertion violations when deleting a frame

* src/dispnew.c (adjust_frame_glyphs): Allow nrows = 0 when
deleting a frame.  (Bug#71475)
This commit is contained in:
Eli Zaretskii 2024-06-10 22:13:29 +03:00
parent 2ac85aa613
commit 7c97d05b56

View file

@ -1851,6 +1851,7 @@ adjust_frame_glyphs (struct frame *f)
eassert (FRAME_INITIAL_P (f)
|| noninteractive
|| !initialized
|| !f->terminal->name /* frame is being deleted */
|| (f->current_matrix
&& f->current_matrix->nrows > 0
&& f->current_matrix->rows