Fix track_graphemes

This commit is contained in:
gingerBill
2025-10-13 15:47:35 +01:00
parent 6a07d0e20a
commit 78e9a22ffa

View File

@@ -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