From 454c6a0e914b621725941dd7e4cc6e1ffd03f80f Mon Sep 17 00:00:00 2001 From: Timon Ringwald Date: Wed, 4 May 2022 11:53:08 +0200 Subject: [PATCH] fill recycled buffer with default rune --- screen.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/screen.go b/screen.go index 20847fd..faa91cc 100644 --- a/screen.go +++ b/screen.go @@ -119,6 +119,8 @@ func (s *Screen) drawloop() { if s.buf == nil || s.buf.Width() != w || s.buf.Height() != h { s.buf = buf2d.NewBuffer(w, h, DefaultRune) + } else { + s.buf.Fill(DefaultRune) } rw, rh := s.Root.Layout()