diff --git a/internal/affine/colorm.go b/internal/affine/colorm.go index e33fb4109..04c9fddc8 100644 --- a/internal/affine/colorm.go +++ b/internal/affine/colorm.go @@ -139,6 +139,9 @@ func (c *ColorM) Equals(other *ColorM) bool { rhsb = c.body rhst = c.translate } + if &lhsb == &rhsb && &lhst == &rhst { + return true + } for i := range lhsb { if lhsb[i] != rhsb[i] {