mirror of https://github.com/gdamore/tcell.git
Go back to where tcell is currently at
This commit is contained in:
parent
2eb23ea847
commit
2d50d86419
2
attr.go
2
attr.go
|
@ -16,7 +16,7 @@ package tcell
|
|||
|
||||
// AttrMask represents a mask of text attributes, apart from color.
|
||||
// Note that support for attributes may vary widely across terminals.
|
||||
type AttrMask int64
|
||||
type AttrMask int
|
||||
|
||||
// Attributes are not colors, but affect the display of text. They can
|
||||
// be combined, in some cases, but not others. (E.g. you can have Dim Italic,
|
||||
|
|
3
cell.go
3
cell.go
|
@ -16,6 +16,7 @@ package tcell
|
|||
|
||||
import (
|
||||
"os"
|
||||
"reflect"
|
||||
|
||||
runewidth "github.com/mattn/go-runewidth"
|
||||
)
|
||||
|
@ -57,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) {
|
||||
if (c.width > 0) && (mainc != c.currMain || !reflect.DeepEqual(combc, c.currComb)) {
|
||||
for i := 0; i < c.width; i++ {
|
||||
cb.SetDirty(x+i, y, true)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue