aboutsummaryrefslogtreecommitdiff
path: root/widgets/terminal.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/terminal.go')
-rw-r--r--widgets/terminal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/terminal.go b/widgets/terminal.go
index 57ff6a0..d627c62 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 {