diff --git a/src/jvmMain/kotlin/com/sunnychung/application/multiplatform/hellohttp/ux/bigtext/BigMonospaceText.kt b/src/jvmMain/kotlin/com/sunnychung/application/multiplatform/hellohttp/ux/bigtext/BigMonospaceText.kt index bc50fae8..2ba6644a 100644 --- a/src/jvmMain/kotlin/com/sunnychung/application/multiplatform/hellohttp/ux/bigtext/BigMonospaceText.kt +++ b/src/jvmMain/kotlin/com/sunnychung/application/multiplatform/hellohttp/ux/bigtext/BigMonospaceText.kt @@ -465,6 +465,9 @@ private fun CoreBigMonospaceText( eventType = eventType, changeStartIndex = changeStartIndex, changeEndExclusiveIndex = changeEndExclusiveIndex, + renderText = transformedText, + changeTransformedStartIndex = transformedText.findTransformedPositionByOriginalPosition(changeStartIndex), + changeTransformedEndExclusiveIndex = transformedText.findTransformedPositionByOriginalPosition(changeEndExclusiveIndex) ) } diff --git a/src/jvmMain/kotlin/com/sunnychung/application/multiplatform/hellohttp/ux/bigtext/BigTextChangeEvent.kt b/src/jvmMain/kotlin/com/sunnychung/application/multiplatform/hellohttp/ux/bigtext/BigTextChangeEvent.kt index 5cd2597c..98ca05c2 100644 --- a/src/jvmMain/kotlin/com/sunnychung/application/multiplatform/hellohttp/ux/bigtext/BigTextChangeEvent.kt +++ b/src/jvmMain/kotlin/com/sunnychung/application/multiplatform/hellohttp/ux/bigtext/BigTextChangeEvent.kt @@ -12,6 +12,10 @@ data class BigTextChangeEvent( val changeStartIndex: Int, val changeEndExclusiveIndex: Int, + + val renderText: BigText, + val changeTransformedStartIndex: Int, + val changeTransformedEndExclusiveIndex: Int, ) enum class BigTextChangeEventType {