Fix clear message
This commit is contained in:
parent
09f01ed2c1
commit
3127adfb10
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user