Updated on 2026-08-14
This commit is contained in:
parent
db03d6d860
commit
b2bedf905e
1 changed files with 3 additions and 1 deletions
|
|
@ -31,7 +31,9 @@ internal class BoundCounter(
|
|||
}
|
||||
|
||||
fun addNextChar() {
|
||||
string += text[charPosition(string.count())]
|
||||
val nextIndex = charPosition(string.count())
|
||||
if (nextIndex < 0 || nextIndex >= text.length) return
|
||||
string += text[nextIndex]
|
||||
width += nextCharWidth()
|
||||
_nextCharWidth = null
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue