diff options
| author | YAMAMOTO Mitsuharu | 2022-09-07 15:18:21 +0900 |
|---|---|---|
| committer | Eli Zaretskii | 2022-09-17 19:58:52 +0300 |
| commit | 7fe22182d3abcb3124c50f717cc74925800b7720 (patch) | |
| tree | 437d9a10fff40153feee6dc3cf3447f3a933d67f /src | |
| parent | cbac94b4aeecdf57e2a1f3e95e27ec76505ae964 (diff) | |
| download | emacs-7fe22182d3abcb3124c50f717cc74925800b7720.tar.gz emacs-7fe22182d3abcb3124c50f717cc74925800b7720.zip | |
Fix rare shaping problems with Urdu and Arabic
* src/composite.c (fill_gstring_body): Clear unused slots of the
gstring. (Bug#50951)
Diffstat (limited to 'src')
| -rw-r--r-- | src/composite.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
| 876 | } | 876 | } |
| 877 | LGLYPH_SET_ADJUSTMENT (g, Qnil); | 877 | LGLYPH_SET_ADJUSTMENT (g, Qnil); |
| 878 | } | 878 | } |
| 879 | if (i < LGSTRING_GLYPH_LEN (gstring)) | 879 | len = LGSTRING_GLYPH_LEN (gstring); |
| 880 | for (; i < len; i++) | ||
| 880 | LGSTRING_SET_GLYPH (gstring, i, Qnil); | 881 | LGSTRING_SET_GLYPH (gstring, i, Qnil); |
| 881 | } | 882 | } |
| 882 | 883 | ||