From 3bf00777be1e28d3d0e49692071825580f472037 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 7 Nov 2024 19:34:43 +0200 Subject: [PATCH] ; * src/xdisp.c (face_before_or_after_it_pos): Fix thinko (bug#74241). --- src/xdisp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2