Skip to content

Commit

Permalink
Revert "Allow setting dirty when combc length is 0"
Browse files Browse the repository at this point in the history
This reverts commit 4b3233a.
  • Loading branch information
kivattt authored and gdamore committed Oct 7, 2024
1 parent 4419805 commit c0abe11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cell.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (cb *CellBuffer) SetContent(x int, y int,
// dirty as well as the base cell, to make sure we consider
// both cells as dirty together. We only need to do this
// if we're changing content
if (c.width > 0) && (mainc != c.currMain || len(combc) != len(c.currComb) || !(len(combc) > 0 && reflect.DeepEqual(combc, c.currComb))) {
if (c.width > 0) && (mainc != c.currMain || len(combc) != len(c.currComb) || (len(combc) > 0 && !reflect.DeepEqual(combc, c.currComb))) {
for i := 0; i < c.width; i++ {
cb.SetDirty(x+i, y, true)
}
Expand Down

0 comments on commit c0abe11

Please sign in to comment.