summaryrefslogtreecommitdiff
path: root/media-gfx/imv/files/imv-4.3.1_p20211221-libgrapheme2.patch
blob: d71067130c27bc7b121a07cd8d118d82b37c4e6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
https://lists.sr.ht/~exec64/imv-devel/patches/35908
--- a/src/console.c
+++ b/src/console.c
@@ -54,3 +54,3 @@
   if (buffer[position] != 0) {
-    return position + grapheme_next_character_break(buffer + position, SIZE_MAX);
+    return position + grapheme_next_character_break_utf8(buffer + position, SIZE_MAX);
   } else {
@@ -87,3 +87,3 @@
   do {
-    step = grapheme_next_character_break(buffer + result, SIZE_MAX);
+    step = grapheme_next_character_break_utf8(buffer + result, SIZE_MAX);
     if (result + step >= position)