summaryrefslogtreecommitdiff
path: root/term.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2006-10-08 23:43:13 +0000
committerRich Felker <dalias@aerifal.cx>2006-10-08 23:43:13 +0000
commit916c3fb0040ff697e2abfe3791e89512499f8ccb (patch)
tree39c1689ffed8e89100a25045329e999751b874bc /term.c
parent91f215a78c28986a12f4cd9d5e03ffea17b3363e (diff)
fbcon target: let the kernel do the key mapping for us...
this made it easy to fix vc switching and window resizing, so i'm fixing those in the same commit as well.
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;