Fix track_graphemes
This commit is contained in:
1 parent
6a07d0e20a
commit
78e9a22ffa
1 file changed
+2
@@ -107,8 +107,10 @@ decode_grapheme_clusters :: proc(
|
|||||||
|
|
||||||
it := decode_grapheme_iterator_make(str)
|
it := decode_grapheme_iterator_make(str)
|
||||||
for _, grapheme in decode_grapheme_iterate(&it) {
|
for _, grapheme in decode_grapheme_iterate(&it) {
|
||||||
|
if track_graphemes {
|
||||||
append(&graphemes, grapheme)
|
append(&graphemes, grapheme)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
grapheme_count = it.grapheme_count
|
grapheme_count = it.grapheme_count
|
||||||
rune_count = it.rune_count
|
rune_count = it.rune_count
|
||||||
|
|||||||
Reference in new issue
Block a user