commit 91579d79ea33b7f14db6b8187255971b467f2553
Author:     Jan Klemkow <[email protected]>
AuthorDate: Sun Oct 9 22:41:59 2022 +0200
Commit:     Jan Klemkow <[email protected]>
CommitDate: Sun Oct 9 22:41:59 2022 +0200

    update libgrapheme to version 2.0.1
    
    suggested by Tom Schwindl <[email protected]>

diff --git a/slackline.c b/slackline.c
index bc4dfe9..d7704a3 100644
--- a/slackline.c
+++ b/slackline.c
@@ -75,7 +75,8 @@ sl_postobyte(struct slackline *sl, size_t pos)
        size_t byte = 0;
 
        for (;pos > 0; pos--)
-               byte += grapheme_next_character_break(ptr+byte, sl->blen-byte);
+               byte += grapheme_next_character_break_utf8(ptr+byte,
+                   sl->blen-byte);
 
        return byte;
 }

Reply via email to