From 97c735f82885ac0ce2e7dbc3725e46f84ecd1235 Mon Sep 17 00:00:00 2001 From: erroneousboat Date: Fri, 26 Jan 2018 12:07:14 +0100 Subject: [PATCH] Reset offset when sending message Fixes #73 --- components/input.go | 1 + 1 file changed, 1 insertion(+) diff --git a/components/input.go b/components/input.go index 141e223..dcab2f1 100644 --- a/components/input.go +++ b/components/input.go @@ -194,6 +194,7 @@ func (i *Input) Clear() { i.Par.Text = "" i.CursorPositionScreen = 0 i.CursorPositionText = 0 + i.Offset = 0 } // GetText returns the text currently in the input