summaryrefslogtreecommitdiff
path: root/term.c
diff options
context:
space:
mode:
Diffstat (limited to 'term.c')
-rw-r--r--term.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/term.c b/term.c
index cf57560..3cce287 100644
--- a/term.c
+++ b/term.c
@@ -486,6 +486,8 @@ void uuterm_replace_buffer(struct uuterm *t, int w, int h, void *buf)
rows[i]->x2 = w-1;
}
+ if (t->sr_y2 == t->h-1) t->sr_y2 = h-1;
+
t->w = w;
t->h = h;
t->rows = rows;