mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-10 16:39:35 +00:00
fix dealing with prases without non-whitespace letters in SpacedTokens
This commit is contained in:
parent
c33c2c5823
commit
9c9fe392d1
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ class SpacedTokens(phrase: String) : Iterable<String> {
|
|||
private var startPos = mStartPos
|
||||
|
||||
override fun hasNext(): Boolean {
|
||||
return startPos < mLength
|
||||
return startPos < mLength && startPos != -1
|
||||
}
|
||||
|
||||
override fun next(): String {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue