diff options
-rw-r--r-- | widgets/terminal.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/terminal.go b/widgets/terminal.go index 57ff6a0a..d627c628 100644 --- a/widgets/terminal.go +++ b/widgets/terminal.go @@ -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 { |