aboutsummaryrefslogtreecommitdiff
path: root/widgets
diff options
context:
space:
mode:
authorTom Lebreux <tomlebreux@cock.li>2019-04-05 19:44:19 -0400
committerDrew DeVault <sir@cmpwn.com>2019-04-05 20:10:28 -0400
commit399d014bff391009aa6f7bb52000e80558db5d4c (patch)
tree8cf5dd71af3f8da346ca1a798f6af43b62436afd /widgets
parent41212a717e9012179e4333a68efdf52f3f3dadab (diff)
Fix wrong row due to typo
Signed-off-by: Tom Lebreux <tomlebreux@cock.li>
Diffstat (limited to 'widgets')
-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 {