commit 91579d79ea33b7f14db6b8187255971b467f2553 parent 1f48fc49963432855d340efd51abcc613bfcfd6c Author: Jan Klemkow <j.klemkow@wemelug.de> Date: Sun, 9 Oct 2022 22:41:59 +0200 update libgrapheme to version 2.0.1 suggested by Tom Schwindl <schwindl@posteo.de> Diffstat:
M | slackline.c | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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; }