[hackers] [lchat] update libgrapheme to version 2.0.1 || Jan Klemkow

From: <git_AT_suckless.org>
Date: Sun, 9 Oct 2022 22:43:29 +0200 (CEST)

commit 91579d79ea33b7f14db6b8187255971b467f2553
Author: Jan Klemkow <j.klemkow_AT_wemelug.de>
AuthorDate: Sun Oct 9 22:41:59 2022 +0200
Commit: Jan Klemkow <j.klemkow_AT_wemelug.de>
CommitDate: Sun Oct 9 22:41:59 2022 +0200

    update libgrapheme to version 2.0.1
    
    suggested by Tom Schwindl <schwindl_AT_posteo.de>

diff --git a/slackline.c b/slackline.c
index bc4dfe9..d7704a3 100644
--- a/slackline.c
+++ b/slackline.c
_AT_@ -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;
 }
Received on Sun Oct 09 2022 - 22:43:29 CEST

This archive was generated by hypermail 2.3.0 : Sun Oct 09 2022 - 22:48:35 CEST