Skip to content

Commit 78e9a22

Browse files
committed
Fix track_graphemes
1 parent 6a07d0e commit 78e9a22

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/unicode/utf8/grapheme.odin

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ decode_grapheme_clusters :: proc(
107107

108108
it := decode_grapheme_iterator_make(str)
109109
for _, grapheme in decode_grapheme_iterate(&it) {
110-
append(&graphemes, grapheme)
110+
if track_graphemes {
111+
append(&graphemes, grapheme)
112+
}
111113
}
112114

113115
grapheme_count = it.grapheme_count

0 commit comments

Comments
 (0)