From c0abe111d337b9eea979d1ef56dc38600c29fafa Mon Sep 17 00:00:00 2001 From: kivattt Date: Mon, 7 Oct 2024 04:23:52 +0200 Subject: [PATCH] Revert "Allow setting dirty when combc length is 0" This reverts commit 4b3233a3a4553f55c78f0731cf7213f4d1e88061. --- cell.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cell.go b/cell.go index dbfe983..ae3a6f2 100644 --- a/cell.go +++ b/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 // 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) }