From 78e9a22ffaeb3191806eee59a807e38d9b942ee0 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 13 Oct 2025 15:47:35 +0100 Subject: [PATCH] Fix `track_graphemes` --- core/unicode/utf8/grapheme.odin | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/unicode/utf8/grapheme.odin b/core/unicode/utf8/grapheme.odin index b8e51688c..d8f6557b6 100644 --- a/core/unicode/utf8/grapheme.odin +++ b/core/unicode/utf8/grapheme.odin @@ -107,7 +107,9 @@ decode_grapheme_clusters :: proc( it := decode_grapheme_iterator_make(str) for _, grapheme in decode_grapheme_iterate(&it) { - append(&graphemes, grapheme) + if track_graphemes { + append(&graphemes, grapheme) + } } grapheme_count = it.grapheme_count