Fix clear message

This commit is contained in:
erroneousboat 2016-10-22 10:51:21 +02:00
parent 09f01ed2c1
commit 3127adfb10

View File

@ -123,6 +123,7 @@ func (i *Input) IsEmpty() bool {
// Clear will empty the input and move the cursor to the start position
func (i *Input) Clear() {
i.Text = make([]rune, 0)
i.Par.Text = ""
i.CursorPosition = 0
}