diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-10-05 16:38:21 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-10-05 16:38:21 +0000 |
commit | 73daffc87712b3dc9395e3eec33a55e8b776a7da (patch) | |
tree | 0a7da31bf5a801ed61063c5a39e6fa63060ebba1 /sys/arch/i386 | |
parent | a8c02e2892ab6227452386389de4b3cd32118c51 (diff) |
Add a missing check from last commit.
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/isa/pcvt/pcvt_kbd.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/arch/i386/isa/pcvt/pcvt_kbd.c b/sys/arch/i386/isa/pcvt/pcvt_kbd.c index 3ea26471faa..095278cc722 100644 --- a/sys/arch/i386/isa/pcvt/pcvt_kbd.c +++ b/sys/arch/i386/isa/pcvt/pcvt_kbd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcvt_kbd.c,v 1.25 1999/10/04 09:38:19 aaron Exp $ */ +/* $OpenBSD: pcvt_kbd.c,v 1.26 1999/10/05 16:38:20 aaron Exp $ */ /* * Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch. @@ -1501,12 +1501,11 @@ regular: vsp->Scrollback, vsp->maxcol * vsp->max_off * CHR); - vsp->scr_offset--; } bcopy(vsp->Crtat + vsp->cur_offset - vsp->col, vsp->Scrollback + - ((vsp->scr_offset + 1) * - vsp->maxcol), vsp->maxcol * CHR); + (vsp->scr_offset + 1) * + vsp->maxcol, vsp->maxcol * CHR); } if (vsp->cursor_on) @@ -1531,8 +1530,10 @@ scroll_reset: if (vsp->scrolling > 0) { vsp->scrolling -= vsp->screen_rows - 1; - if (vsp->scrolling < 0) + if (vsp->scrolling <= 0) vsp->scrolling = 0; + else if (vsp->scrolling < vsp->screen_rows) + vsp->scrolling = vsp->screen_rows - 1; if (vsp->scrolling <= vsp->row) { |