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

@ -57,7 +57,7 @@ func WriteLine(screen mauview.Screen, align int, line string, x, y, maxWidth int
screen.SetContent(x+offsetX+localOffset, y, ch, nil, style)
}
offsetX += chWidth
if offsetX > maxWidth {
if offsetX >= maxWidth {
break
}
}