Update cell.go

Co-authored-by: Garrett D'Amore <garrett@damore.org>
This commit is contained in:
kivattt 2024-10-07 02:59:08 +02:00 committed by GitHub
parent 8c582f4fb7
commit 35b7969368
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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) > 0 && len(combc) == len(c.currComb) && 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)
}