fixes #30 Resize needs to invalidate cells

fixes #29 ErrorEvent needs to implement error
This commit is contained in:
Garrett D'Amore 2015-10-06 01:07:11 -07:00
parent 118fce3ce9
commit eccaea0126
2 changed files with 6 additions and 0 deletions

View File

@ -33,6 +33,10 @@ func (ev *EventError) When() time.Time {
return ev.t return ev.t
} }
func (ev *EventError) Error() string {
return ev.err.Error()
}
func NewEventError(err error) *EventError { func NewEventError(err error) *EventError {
return &EventError{t: time.Now(), err: err} return &EventError{t: time.Now(), err: err}
} }

View File

@ -558,6 +558,8 @@ func (t *tScreen) resize() {
t.cells = ResizeCells(t.cells, t.w, t.h, w, h) t.cells = ResizeCells(t.cells, t.w, t.h, w, h)
t.w = w t.w = w
t.h = h t.h = h
InvalidateCells(t.cells)
} }
} }
if ev != nil { if ev != nil {