diff options
| -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 = "" } |
