diff options
-rw-r--r-- | widgets/terminal.go | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/widgets/terminal.go b/widgets/terminal.go index 82954a70..39cd9f24 100644 --- a/widgets/terminal.go +++ b/widgets/terminal.go @@ -148,20 +148,8 @@ func (term *Terminal) HandleEvent(ev tcell.Event) bool { } switch ev := ev.(type) { case *views.EventWidgetContent: - if !term.focus { - return false - } - // Draw here for performance improvement. We call draw again in - // the main Draw, but tcell-term only draws dirty cells, so it - // won't be too much extra CPU there. Drawing there is needed - // for certain msgviews, particularly if the pager command - // exits. - term.draw() - // Perform a tcell screen.Show() to show our updates - // immediately - if term.ctx != nil { - term.ctx.Show() - } + term.Invalidate() + ui.QueueRedraw() return true case *tcellterm.EventTitle: if term.OnTitle != nil { |