diff --git a/errors.go b/errors.go index bd81088..c4a9ad7 100644 --- a/errors.go +++ b/errors.go @@ -33,6 +33,10 @@ func (ev *EventError) When() time.Time { return ev.t } +func (ev *EventError) Error() string { + return ev.err.Error() +} + func NewEventError(err error) *EventError { return &EventError{t: time.Now(), err: err} } diff --git a/tscreen.go b/tscreen.go index 95cb1b5..9695a47 100644 --- a/tscreen.go +++ b/tscreen.go @@ -558,6 +558,8 @@ func (t *tScreen) resize() { t.cells = ResizeCells(t.cells, t.w, t.h, w, h) t.w = w t.h = h + + InvalidateCells(t.cells) } } if ev != nil {