Skip to content

Commit

Permalink
add transformation to BigTextChangeEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny-chung committed Oct 11, 2024
1 parent 6affb53 commit 00cca18
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,9 @@ private fun CoreBigMonospaceText(
eventType = eventType,
changeStartIndex = changeStartIndex,
changeEndExclusiveIndex = changeEndExclusiveIndex,
renderText = transformedText,
changeTransformedStartIndex = transformedText.findTransformedPositionByOriginalPosition(changeStartIndex),
changeTransformedEndExclusiveIndex = transformedText.findTransformedPositionByOriginalPosition(changeEndExclusiveIndex)
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 00cca18

Please sign in to comment.