summaryrefslogtreecommitdiff
path: root/tui/text_input.go
diff options
context:
space:
mode:
authorcitrons <citrons@mondecitronne.com>2025-06-05 14:59:14 -0500
committercitrons <citrons@mondecitronne.com>2025-06-07 16:02:18 -0500
commitc51e210f6eb6f27136c4599c06c60727cc6358dd (patch)
treee9ff211e58c4510fb9b3832a7e834d065b369ff5 /tui/text_input.go
parentf7392ac1dd02be1cb746d6101d4e94a77e8144f3 (diff)
when text input contents are set, put cursor after
Diffstat (limited to 'tui/text_input.go')
-rw-r--r--tui/text_input.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tui/text_input.go b/tui/text_input.go
index b5d2748..7f8e539 100644
--- a/tui/text_input.go
+++ b/tui/text_input.go
@@ -20,8 +20,8 @@ func (t *TextInput) Text() string {
}
func (t *TextInput) SetText(text string) {
- t.beforeCursor = ""
- t.afterCursor = text
+ t.beforeCursor = text
+ t.afterCursor = ""
t.selection = ""
}