all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Cc: "Clément Pit--Claudel" <clement.pitclaudel@live.com>,
	26742@debbugs.gnu.org
Subject: bug#26742: Display bug with composed strings
Date: Thu, 04 May 2017 18:21:11 +0200	[thread overview]
Message-ID: <87shkkmw3s.fsf@linux-m68k.org> (raw)
In-Reply-To: <wlwp9x2kxo.wl%mituharu@math.s.chiba-u.ac.jp> (YAMAMOTO Mitsuharu's message of "Thu, 04 May 2017 15:30:27 +0900")

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."





  reply	other threads:[~2017-05-04 16:21 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-02  6:58 bug#26742: Display bug with composed strings Clément Pit--Claudel
2017-05-02  8:15 ` Eli Zaretskii
2017-05-02 15:40   ` Clément Pit--Claudel
2017-05-02 16:46     ` Eli Zaretskii
2017-05-02 17:18       ` Andreas Schwab
2017-05-02 17:53         ` Eli Zaretskii
2017-05-02 19:02           ` Andreas Schwab
2017-05-02 19:08             ` Eli Zaretskii
2017-05-02 17:22       ` Clément Pit--Claudel
2017-05-02 17:57         ` Eli Zaretskii
2017-05-02 18:20           ` Eli Zaretskii
2017-05-02 19:06             ` Andreas Schwab
2017-05-02 20:01               ` Eli Zaretskii
2017-05-03  5:15               ` Clément Pit--Claudel
2017-05-03  5:20           ` Clément Pit--Claudel
2017-05-03 14:50             ` Eli Zaretskii
2017-05-03  3:50 ` YAMAMOTO Mitsuharu
2017-05-03 14:42   ` Eli Zaretskii
2017-05-03 16:53   ` Andreas Schwab
2017-05-04  5:39     ` YAMAMOTO Mitsuharu
2017-05-04  6:30       ` YAMAMOTO Mitsuharu
2017-05-04 16:21         ` Andreas Schwab [this message]
2017-05-04 22:40           ` Clément Pit--Claudel
2017-05-07 23:41             ` mituharu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87shkkmw3s.fsf@linux-m68k.org \
    --to=schwab@linux-m68k.org \
    --cc=26742@debbugs.gnu.org \
    --cc=clement.pitclaudel@live.com \
    --cc=mituharu@math.s.chiba-u.ac.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.