Skip to content

Commit

Permalink
fix(cellbuf): remove invalid optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Dec 20, 2024
1 parent c29bcc9 commit 5c6b21f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cellbuf/buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,6 @@ func (l Line) set(x int, c *Cell, clone bool) bool {
return false
}

// Don't allocate a new cell if the cell is a clear blank.
if c != nil && c.Equal(&BlankCell) {
c = nil
}

// When a wide cell is partially overwritten, we need
// to fill the rest of the cell with space cells to
// avoid rendering issues.
Expand Down

0 comments on commit 5c6b21f

Please sign in to comment.