summaryrefslogtreecommitdiff
path: root/sys/arch/i386/isa
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-02-28 02:39:16 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-02-28 02:39:16 +0000
commitc2939d9f9dcd759c25f06107adc67866c1694e2a (patch)
treea78459642856f3154853f5ea86fb837ee0196100 /sys/arch/i386/isa
parent6c1ac60272c6f52cad4a4014563fcc46fffea7f7 (diff)
Don't let scrollback happen if scr_offset == 0.
Diffstat (limited to 'sys/arch/i386/isa')
-rw-r--r--sys/arch/i386/isa/pcvt/pcvt_kbd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/isa/pcvt/pcvt_kbd.c b/sys/arch/i386/isa/pcvt/pcvt_kbd.c
index c0241b26901..d5f71535824 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.33 2000/02/27 20:34:36 aaron Exp $ */
+/* $OpenBSD: pcvt_kbd.c,v 1.34 2000/02/28 02:39:15 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->scr_offset >= vsp->row) {
if (!vsp->scrolling) {
vsp->scrolling += vsp->row - 1;
if (vsp->Scrollback) {