From 7fe22182d3abcb3124c50f717cc74925800b7720 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Wed, 7 Sep 2022 15:18:21 +0900 Subject: [PATCH] Fix rare shaping problems with Urdu and Arabic * src/composite.c (fill_gstring_body): Clear unused slots of the gstring. (Bug#50951) --- src/composite.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/composite.c b/src/composite.c index 22422cca090..249d7587f61 100644 --- a/src/composite.c +++ b/src/composite.c @@ -876,7 +876,8 @@ fill_gstring_body (Lisp_Object gstring) } LGLYPH_SET_ADJUSTMENT (g, Qnil); } - if (i < LGSTRING_GLYPH_LEN (gstring)) + len = LGSTRING_GLYPH_LEN (gstring); + for (; i < len; i++) LGSTRING_SET_GLYPH (gstring, i, Qnil); } -- 2.39.2