From c51e210f6eb6f27136c4599c06c60727cc6358dd Mon Sep 17 00:00:00 2001 From: citrons Date: Thu, 5 Jun 2025 14:59:14 -0500 Subject: when text input contents are set, put cursor after --- tui/text_input.go | 4 ++-- 1 file 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 = "" } -- cgit v1.2.3