diff options
| author | citrons <citrons@mondecitronne.com> | 2025-06-05 14:59:14 -0500 |
|---|---|---|
| committer | citrons <citrons@mondecitronne.com> | 2025-06-07 16:02:18 -0500 |
| commit | c51e210f6eb6f27136c4599c06c60727cc6358dd (patch) | |
| tree | e9ff211e58c4510fb9b3832a7e834d065b369ff5 | |
| parent | f7392ac1dd02be1cb746d6101d4e94a77e8144f3 (diff) | |
when text input contents are set, put cursor after
| -rw-r--r-- | tui/text_input.go | 4 |
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 = "" } |
