From c2939d9f9dcd759c25f06107adc67866c1694e2a Mon Sep 17 00:00:00 2001 From: Aaron Campbell Date: Mon, 28 Feb 2000 02:39:16 +0000 Subject: Don't let scrollback happen if scr_offset == 0. --- sys/arch/i386/isa/pcvt/pcvt_kbd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/i386/isa') 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) { -- cgit v1.2.3