fill recycled buffer with default rune

This commit is contained in:
Timon Ringwald 2022-05-04 11:53:08 +02:00
parent 768702af0b
commit 454c6a0e91

View File

@ -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()