Fix wrong row due to typo

Signed-off-by: Tom Lebreux <tomlebreux@cock.li>
This commit is contained in:
Tom Lebreux 2019-04-05 19:44:19 -04:00 committed by Drew DeVault
parent 41212a717e
commit 399d014bff
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ func (term *Terminal) Draw(ctx *ui.Context) {
for _, rect := range term.damage {
for x := rect.StartCol(); x < rect.EndCol() && x < ctx.Width(); x += 1 {
for y := rect.StartCol(); y < rect.EndCol() && y < ctx.Height(); y += 1 {
for y := rect.StartRow(); y < rect.EndRow() && y < ctx.Height(); y += 1 {
coords := coords{x, y}
if _, ok := visited[coords]; ok {