Skip to content

Commit

Permalink
fix(cellbuf): only clear blank cell when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Dec 12, 2024
1 parent e366fd0 commit 04a5e78
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cellbuf/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 04a5e78

Please sign in to comment.