Change things

This commit is contained in:
Tulir Asokan
2019-03-26 19:57:44 +02:00
parent ded4767729
commit c3c7cc9b35
5 changed files with 45 additions and 50 deletions

View File

@ -183,9 +183,8 @@ func (str TString) AdjustStyleFull(fn func(tcell.Style) tcell.Style) {
}
func (str TString) Draw(screen mauview.Screen, x, y int) {
offsetX := 0
for _, cell := range str {
offsetX += cell.Draw(screen, x+offsetX, y)
x += cell.Draw(screen, x, y)
}
}