]> git.eshelyaron.com Git - emacs.git/commitdiff
; * 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)
committerEshel Yaron <me@eshelyaron.com>
Sat, 9 Nov 2024 15:47:16 +0000 (16:47 +0100)
(cherry picked from commit 3bf00777be1e28d3d0e49692071825580f472037)

src/xdisp.c

index 30046e8caf3e78d4e7835405b2b75a2daa12bdb1..a5ad3426b7a83f7853ce91641c7a2a8cf2805660 100644 (file)
@@ -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);