summaryrefslogtreecommitdiff
path: root/tui/text_input.go
diff options
context:
space:
mode:
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 = ""
}