; * src/xdisp.c (face_before_or_after_it_pos): Fix thinko (bug#74241).
authorEli Zaretskii <eliz@gnu.org>
Thu, 7 Nov 2024 17:34:43 +0000 (19:34 +0200)
committerEli Zaretskii <eliz@gnu.org>
Thu, 7 Nov 2024 17:34:43 +0000 (19:34 +0200)
src/xdisp.c

index a1319e76f49b4f6eff57ea68d002c922798366a1..bc5738e89b7ae1213270d690bd9fd84abb637356 100644 (file)
@@ -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);