From 1134097176ab5037e79e6dac8a072ab414395f46 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). (cherry picked from commit 3bf00777be1e28d3d0e49692071825580f472037) --- src/xdisp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5