From: Eli Zaretskii Date: Mon, 10 Jun 2024 19:13:29 +0000 (+0300) Subject: Avoid rare assertion violations when deleting a frame X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bf05a50df83c9e78f30f3e83a535ebfbc7a276f4;p=emacs.git Avoid rare assertion violations when deleting a frame * src/dispnew.c (adjust_frame_glyphs): Allow nrows = 0 when deleting a frame. (Bug#71475) (cherry picked from commit 7c97d05b56a90251cbe94099d211225b330449b1) --- diff --git a/src/dispnew.c b/src/dispnew.c index e74147f1456..8bbb818bc19 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -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