diff options
author | Tulir Asokan <tulir@maunium.net> | 2018-05-25 22:44:12 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2018-05-25 22:44:12 +0300 |
commit | 7b8229dab12ddfe34b91a6eccce7744db17d398a (patch) | |
tree | b569a2c085e2cbaab1975497500a1dd9001e7ba8 /vendor/maunium.net/go/tcell/cell.go | |
parent | a76ce88a30e8c09603350a88827cf24239e8e44a (diff) |
Update dependencies
Diffstat (limited to 'vendor/maunium.net/go/tcell/cell.go')
-rw-r--r-- | vendor/maunium.net/go/tcell/cell.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/maunium.net/go/tcell/cell.go b/vendor/maunium.net/go/tcell/cell.go index b54abcb..496f10f 100644 --- a/vendor/maunium.net/go/tcell/cell.go +++ b/vendor/maunium.net/go/tcell/cell.go @@ -48,12 +48,13 @@ func (cb *CellBuffer) SetContent(x int, y int, if x >= 0 && y >= 0 && x < cb.w && y < cb.h { c := &cb.cells[(y*cb.w)+x] + c.currComb = append([]rune{}, combc...) i := 0 - for i < len(combc) { - r := combc[i] + for i < len(c.currComb) { + r := c.currComb[i] if runewidth.RuneWidth(r) != 0 { // not a combining character, yank it - combc = append(combc[:i-1], combc[i+1:]...) + c.currComb = append(c.currComb[:i-1], c.currComb[i+1:]...) continue } i++ @@ -63,7 +64,6 @@ func (cb *CellBuffer) SetContent(x int, y int, c.width = runewidth.RuneWidth(mainc) } c.currMain = mainc - c.currComb = combc c.currStyle = style } } |