优化
This commit is contained in:
1 parent
1181d93452
commit
952cfabe48
1 file changed
+2
-2
@@ -322,9 +322,9 @@ class ReadView(context: Context, attrs: AttributeSet) :
|
|||||||
if (ci == start) {
|
if (ci == start) {
|
||||||
startPos.lineIndex = index
|
startPos.lineIndex = index
|
||||||
startPos.charIndex = j
|
startPos.charIndex = j
|
||||||
} else if (ci == end) {
|
} else if (ci == end - 1) {
|
||||||
endPos.lineIndex = index
|
endPos.lineIndex = index
|
||||||
endPos.charIndex = j - 1
|
endPos.charIndex = j
|
||||||
return@run
|
return@run
|
||||||
}
|
}
|
||||||
ci++
|
ci++
|
||||||
|
|||||||
Reference in new issue
Block a user