aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-10-13 15:47:35 +0100
committergingerBill <gingerBill@users.noreply.github.com>2025-10-13 15:47:35 +0100
commit78e9a22ffaeb3191806eee59a807e38d9b942ee0 (patch)
tree452df815fd6bf0dd620541645eacbd8c1624af14 /core
parent6a07d0e20a02566a69c5616e35e1262ad0143ca0 (diff)
Fix `track_graphemes`
Diffstat (limited to 'core')
-rw-r--r--core/unicode/utf8/grapheme.odin4
1 files changed, 3 insertions, 1 deletions
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