From 399d014bff391009aa6f7bb52000e80558db5d4c Mon Sep 17 00:00:00 2001 From: Tom Lebreux Date: Fri, 5 Apr 2019 19:44:19 -0400 Subject: Fix wrong row due to typo Signed-off-by: Tom Lebreux --- widgets/terminal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'widgets') 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 { -- cgit 1.4.1-2-gfad0