mirror of
https://github.com/Tencent/QMUI_Android.git
synced 2026-10-18 13:11:05 +08:00
bugfix: wrong indent.
This commit is contained in:
@@ -50,7 +50,7 @@ class SerialLineIndentHandler(
|
||||
private fun calculateIndent(typeModel: TypeModel, pair: Pair<Int, Int>): Int {
|
||||
var indent = 0
|
||||
var el = typeModel.getByPos(pair.first)
|
||||
while (el != null && el.start + el.text.length <= pair.second){
|
||||
while (el != null && el.start <= pair.second){
|
||||
indent += el.measureWidth
|
||||
el = el.next
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user