From: Eli Zaretskii Date: Thu, 7 Nov 2024 17:34:43 +0000 (+0200) Subject: ; * src/xdisp.c (face_before_or_after_it_pos): Fix thinko (bug#74241). X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1134097176ab5037e79e6dac8a072ab414395f46;p=emacs.git ; * src/xdisp.c (face_before_or_after_it_pos): Fix thinko (bug#74241). (cherry picked from commit 3bf00777be1e28d3d0e49692071825580f472037) --- diff --git a/src/xdisp.c b/src/xdisp.c index 30046e8caf3..a5ad3426b7a 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -4996,7 +4996,7 @@ face_before_or_after_it_pos (struct it *it, bool before_p) /* For composition, we must check the position after the composition. */ pos.charpos += it->cmp_it.nchars; - pos.bytepos += it->len; + pos.bytepos += it->cmp_it.nbytes; } else INC_TEXT_POS (pos, it->multibyte_p);