~ghost08/tcell-term

edea9bf5ac8116390279957ac4d6b7c55f9c8efa — Tim Culverhouse 1 year, 2 months ago 1bbdd81
csi: use cell.setStyle instead of assigning directly

This permits easier setting of cell.dirty

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
1 files changed, 1 insertions(+), 1 deletions(-)

M termutil/csi.go
M termutil/csi.go => termutil/csi.go +1 -1
@@ 972,7 972,7 @@ func (t *Terminal) sgrSequenceHandler(params []string) bool {
	x := t.GetActiveBuffer().CursorColumn()
	y := t.GetActiveBuffer().CursorLine()
	if cell := t.GetActiveBuffer().GetCell(x, y); cell != nil {
		cell.attr = t.GetActiveBuffer().cursorAttr
		cell.setStyle(t.GetActiveBuffer().cursorAttr)
	}

	return false