Skip to content

Commit

Permalink
Merge pull request #438 from MohamedRejeb/1.x
Browse files Browse the repository at this point in the history
Add missing lastIndex variable
  • Loading branch information
MohamedRejeb authored Nov 24, 2024
2 parents 44be247 + a751437 commit 957f103
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2770,6 +2770,7 @@ public class RichTextState internal constructor(
var pressY = pressPosition.y
val textLayoutResult = this.textLayoutResult ?: return
var index = 0
var lastIndex = 0

// Get the length of the text
val textLength = textLayoutResult.layoutInput.text.length
Expand Down

0 comments on commit 957f103

Please sign in to comment.