From 04a5e789d4fc47027f140ec81e90846a673e8acf Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Thu, 12 Dec 2024 11:14:21 -0500 Subject: [PATCH] fix(cellbuf): only clear blank cell when needed --- cellbuf/window.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cellbuf/window.go b/cellbuf/window.go index 6db8aac2..60ea211b 100644 --- a/cellbuf/window.go +++ b/cellbuf/window.go @@ -434,9 +434,8 @@ func (s *Screen) putCell(w io.Writer, cell *Cell) { return } - blank := s.clearBlank() if cell == nil { - cell = blank + cell = s.clearBlank() } s.updatePen(w, cell)