mirror of
https://github.com/gdamore/tcell.git
synced 2025-04-24 13:48:51 +08:00
Remove reflect.DeepEqual, no one likes Unicode anyway
This commit is contained in:
parent
36e7c8d593
commit
b83527a307
3
cell.go
3
cell.go
@ -16,7 +16,6 @@ package tcell
|
||||
|
||||
import (
|
||||
"os"
|
||||
"reflect"
|
||||
|
||||
runewidth "github.com/mattn/go-runewidth"
|
||||
)
|
||||
@ -58,7 +57,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 || !reflect.DeepEqual(combc, c.currComb)) {
|
||||
if (c.width > 0) && (mainc != c.currMain) {
|
||||
for i := 0; i < c.width; i++ {
|
||||
cb.SetDirty(x+i, y, true)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user