Merge pull request #2051 from vitorpamplona/claude/fix-quote-cursor-position-QOw9L

Fix quote placement to begin at start of message
This commit is contained in:
Vitor Pamplona
2026-03-31 08:41:54 -04:00
committed by GitHub
3 changed files with 11 additions and 2 deletions
@@ -25,6 +25,13 @@ import androidx.compose.ui.text.TextRange
import kotlin.math.max
import kotlin.math.min
fun TextFieldState.setTextAndPlaceCursorAtBeginning(text: String) {
edit {
replace(0, length, text)
selection = TextRange(0, 0)
}
}
fun TextFieldState.insertUrlAtCursor(url: String) {
edit {
var toInsert = url.trim()