diff options
author | Tom Lebreux <tomlebreux@cock.li> | 2019-04-05 19:44:19 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-04-05 20:10:28 -0400 |
commit | 399d014bff391009aa6f7bb52000e80558db5d4c (patch) | |
tree | 8cf5dd71af3f8da346ca1a798f6af43b62436afd | |
parent | 41212a717e9012179e4333a68efdf52f3f3dadab (diff) | |
download | aerc-399d014bff391009aa6f7bb52000e80558db5d4c.tar.gz |
Fix wrong row due to typo
Signed-off-by: Tom Lebreux <tomlebreux@cock.li>
-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 { |