[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26742: Display bug with composed strings
From: |
Andreas Schwab |
Subject: |
bug#26742: Display bug with composed strings |
Date: |
Thu, 04 May 2017 18:21:11 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
On Mai 04 2017, YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> wrote:
> diff --git a/src/xdisp.c b/src/xdisp.c
> index e3315c4..ed88f4c 100644
> --- a/src/xdisp.c
> +++ b/src/xdisp.c
> @@ -24711,7 +24725,8 @@ compute_overhangs_and_x (struct glyph_string *s, int
> x, int backward_p)
> {
> if (FRAME_RIF (s->f)->compute_glyph_string_overhangs)
> FRAME_RIF (s->f)->compute_glyph_string_overhangs (s);
> - x -= s->width;
> + if (!s->cmp || s->cmp_to == s->cmp->glyph_len)
> + x -= s->width;
> s->x = x;
> s = s->prev;
> }
> @@ -24723,7 +24738,8 @@ compute_overhangs_and_x (struct glyph_string *s, int
> x, int backward_p)
> if (FRAME_RIF (s->f)->compute_glyph_string_overhangs)
> FRAME_RIF (s->f)->compute_glyph_string_overhangs (s);
> s->x = x;
> - x += s->width;
> + if (!s->cmp || s->cmp_to == s->cmp->glyph_len)
> + x += s->width;
> s = s->next;
> }
> }
That fixes the ghost character.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
bug#26742: Display bug with composed strings, YAMAMOTO Mitsuharu, 2017/05/02