Skip to content

Commit

Permalink
fix dragging backward would select one extra character than expected
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny-chung committed Nov 12, 2024
1 parent cdc8982 commit 39b2e8b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,7 @@ private fun CoreBigMonospaceText(
}
}
selectionEnd = selectedCharIndex
viewState.transformedSelection = minOf(selectionStart, selectionEnd) .. maxOf(selectionStart, selectionEnd)
viewState.transformedSelection = minOf(selectionStart, selectionEnd) until maxOf(selectionStart, selectionEnd)
log.d { "t sel = ${viewState.transformedSelection}" }
viewState.updateSelectionByTransformedSelection(transformedText)
viewState.transformedCursorIndex = minOf(
Expand Down

0 comments on commit 39b2e8b

Please sign in to comment.