mirror of
https://github.com/gdamore/tcell.git
synced 2025-04-24 13:48:51 +08:00
Revert "Allow setting dirty when combc length is 0"
This reverts commit 4b3233a3a4553f55c78f0731cf7213f4d1e88061.
This commit is contained in:
parent
44198059df
commit
c0abe111d3
2
cell.go
2
cell.go
@ -58,7 +58,7 @@ func (cb *CellBuffer) SetContent(x int, y int,
|
|||||||
// dirty as well as the base cell, to make sure we consider
|
// dirty as well as the base cell, to make sure we consider
|
||||||
// both cells as dirty together. We only need to do this
|
// both cells as dirty together. We only need to do this
|
||||||
// if we're changing content
|
// 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++ {
|
for i := 0; i < c.width; i++ {
|
||||||
cb.SetDirty(x+i, y, true)
|
cb.SetDirty(x+i, y, true)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user