From 5ee66620fd2af8c5f356e6e720777e16d6c2c050 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 4 Nov 2023 09:33:33 +0200 Subject: [PATCH] Remove unnecessary assertion added 2 days ago * src/xdisp.c (get_glyph_face_and_encoding): Remove unnecessary assertion. It triggers, for no good reason, when running the recipe of bug#66922 and typing C-p in the *Warnings* buffer after the recipe finishes, because the glyph passed to this function is a STRETCH_GLYPH, not a CHAR_GLYPH. --- src/xdisp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index 9e8b4b130b9..041c7adfc50 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -29649,7 +29649,6 @@ get_glyph_face_and_encoding (struct frame *f, struct glyph *glyph, struct face *face; unsigned code = 0; - eassert (glyph->type == CHAR_GLYPH); face = FACE_FROM_ID (f, glyph->face_id); /* Make sure X resources of the face are allocated. */ -- 2.39.5