diff options
Diffstat (limited to 'widgets/terminal.go')
-rw-r--r-- | widgets/terminal.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/widgets/terminal.go b/widgets/terminal.go index 9c2123cc..cf0888ee 100644 --- a/widgets/terminal.go +++ b/widgets/terminal.go @@ -58,7 +58,7 @@ func (term *Terminal) closeErr(err error) { term.ctx.HideCursor() } term.closed = true - ui.QueueRedraw() + ui.Invalidate() } func (term *Terminal) Destroy() { @@ -165,7 +165,7 @@ func (term *Terminal) HandleEvent(ev tcell.Event) { switch ev := ev.(type) { case *tcellterm.EventRedraw: if term.visible { - ui.QueueRedraw() + ui.Invalidate() } case *tcellterm.EventTitle: if term.OnTitle != nil { @@ -173,7 +173,7 @@ func (term *Terminal) HandleEvent(ev tcell.Event) { } case *tcellterm.EventClosed: term.Close() - ui.QueueRedraw() + ui.Invalidate() } } |