Clear damage on each terminal.Draw call

This commit is contained in:
Drew DeVault 2019-04-05 20:11:31 -04:00
parent 399d014bff
commit 4bc8ea34bc

View file

@ -304,6 +304,8 @@ func (term *Terminal) Draw(ctx *ui.Context) {
} }
} }
term.damage = nil
if term.focus && !term.closed { if term.focus && !term.closed {
if !term.cursorShown { if !term.cursorShown {
ctx.HideCursor() ctx.HideCursor()