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-Tag: archive/raspbian/1%30.1+1-3+rpi1^2~2^2~20^2~290 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3bf00777be1e28d3d0e49692071825580f472037;p=emacs.git ; * src/xdisp.c (face_before_or_after_it_pos): Fix thinko (bug#74241). --- diff --git a/src/xdisp.c b/src/xdisp.c index a1319e76f49..bc5738e89b7 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -4970,7 +4970,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);