diff options
Diffstat (limited to 'ui/messages/tstring/cell.go')
-rw-r--r-- | ui/messages/tstring/cell.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/messages/tstring/cell.go b/ui/messages/tstring/cell.go index aee1716..3ea7b5a 100644 --- a/ui/messages/tstring/cell.go +++ b/ui/messages/tstring/cell.go @@ -18,6 +18,7 @@ package tstring import ( "github.com/mattn/go-runewidth" + "maunium.net/go/mauview" "maunium.net/go/tcell" ) @@ -43,7 +44,7 @@ func (cell Cell) RuneWidth() int { return runewidth.RuneWidth(cell.Char) } -func (cell Cell) Draw(screen tcell.Screen, x, y int) (chWidth int) { +func (cell Cell) Draw(screen mauview.Screen, x, y int) (chWidth int) { chWidth = cell.RuneWidth() for runeWidthOffset := 0; runeWidthOffset < chWidth; runeWidthOffset++ { screen.SetContent(x+runeWidthOffset, y, cell.Char, nil, cell.Style) |