all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Robert Pluim <rpluim@gmail.com>
Cc: 51012@debbugs.gnu.org, larsi@gnus.org
Subject: bug#51012: 29.0.50; Problems with emojis and vertical-motion
Date: Mon, 04 Oct 2021 20:04:50 +0300	[thread overview]
Message-ID: <83fstg67rh.fsf@gnu.org> (raw)
In-Reply-To: <87h7dwzqnq.fsf@gmail.com> (message from Robert Pluim on Mon, 04 Oct 2021 18:43:53 +0200)

> From: Robert Pluim <rpluim@gmail.com>
> Date: Mon, 04 Oct 2021 18:43:53 +0200
> Cc: 51012@debbugs.gnu.org
> 
> This fixes it for me:
> 
> diff --git a/src/font.c b/src/font.c
> index 82a1dffc01..83f0f8296a 100644
> --- a/src/font.c
> +++ b/src/font.c
> @@ -3918,7 +3918,7 @@ font_range (ptrdiff_t pos, ptrdiff_t pos_byte, ptrdiff_t *limit,
>  	    val = XCAR (val);
>  	  else if (VECTORP (val))
>  	    val = AREF (val, 0);
> -	  font_object = font_for_char (face, XFIXNAT (val), pos - 1, string);
> +	  font_object = font_for_char (face, XFIXNAT (val), pos, string);
>  	}
>      }

Sounds obvious to me.  Why was there a minus there in the first place?
some remnant of debugging or the previous version?





  parent reply	other threads:[~2021-10-04 17:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-04 15:02 bug#51012: 29.0.50; Problems with emojis and vertical-motion Lars Ingebrigtsen
2021-10-04 16:43 ` Robert Pluim
2021-10-04 16:51   ` Lars Ingebrigtsen
2021-10-04 17:00     ` Robert Pluim
2021-10-04 17:19       ` Lars Ingebrigtsen
2021-10-04 18:35         ` Glenn Morris
2021-10-04 17:04   ` Eli Zaretskii [this message]
2021-10-04 17:08     ` Robert Pluim

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=83fstg67rh.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=51012@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=rpluim@gmail.com \
    /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.