summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-02-27 20:34:37 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-02-27 20:34:37 +0000
commitafe6c4c6039f874da36bed4d747b6f41879f7388 (patch)
tree757c3a89f7bc067f2399fcccec4e5213d8514cfe /sys/arch
parente75ca0fed17ee9f87ef032c7bc57ed1a0a2eb876 (diff)
Fix a minor off-by-one error.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/isa/pcvt/pcvt_kbd.c4
-rw-r--r--sys/arch/i386/isa/pcvt/pcvt_sup.c5
2 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/i386/isa/pcvt/pcvt_kbd.c b/sys/arch/i386/isa/pcvt/pcvt_kbd.c
index bedc748f1c4..c0241b26901 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.32 2000/01/18 19:34:41 aaron Exp $ */
+/* $OpenBSD: pcvt_kbd.c,v 1.33 2000/02/27 20:34:36 aaron Exp $ */
/*
* Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch.
@@ -1106,7 +1106,7 @@ regular:
if ((key == 85) && shift_down &&
(kbd_lastkey != 85 || !kbd_status.breakseen)) {
- if (vsp->scr_offset > vsp->row) {
+ if (vsp->scr_offset >= vsp->row) {
if (!vsp->scrolling) {
vsp->scrolling += vsp->row - 1;
if (vsp->Scrollback) {
diff --git a/sys/arch/i386/isa/pcvt/pcvt_sup.c b/sys/arch/i386/isa/pcvt/pcvt_sup.c
index d5c69772177..de0a56364d7 100644
--- a/sys/arch/i386/isa/pcvt/pcvt_sup.c
+++ b/sys/arch/i386/isa/pcvt/pcvt_sup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcvt_sup.c,v 1.15 2000/01/18 19:34:42 aaron Exp $ */
+/* $OpenBSD: pcvt_sup.c,v 1.16 2000/02/27 20:34:36 aaron Exp $ */
/*
* Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch.
@@ -747,7 +747,8 @@ reallocate_scrollbuffer(struct video_state *svsp, int pages)
}
bcopy(svsp->Crtat, svsp->Scrollback, svsp->screen_rows *
svsp->maxcol * CHR);
- svsp->scr_offset = svsp->row;
+
+ svsp->scr_offset = svsp->row - 1;
}
splx(s);
}