summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>1999-10-04 09:38:20 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>1999-10-04 09:38:20 +0000
commit20cfc030c42ad413445aa792d69d43d1d2e5f094 (patch)
tree2cffee174997ac5563473f61e1819a9a17b41d2c /sys/arch
parentda9cfceeb186f8b4d46709730f19b32fbad521f7 (diff)
Minor calculation tweaks.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/isa/pcvt/pcvt_kbd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/i386/isa/pcvt/pcvt_kbd.c b/sys/arch/i386/isa/pcvt/pcvt_kbd.c
index b93c95c90db..3ea26471faa 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.24 1999/09/27 01:50:19 aaron Exp $ */
+/* $OpenBSD: pcvt_kbd.c,v 1.25 1999/10/04 09:38:19 aaron Exp $ */
/*
* Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch.
@@ -1486,11 +1486,11 @@ regular:
if ((key == 85) && shift_down && kbd_lastkey != 85)
{
- if (vsp->scr_offset > (vsp->screen_rows - 1))
+ if (vsp->scr_offset > vsp->row)
{
if (!vsp->scrolling)
{
- vsp->scrolling += vsp->screen_rows - 2;
+ vsp->scrolling += vsp->row - 1;
if (vsp->Scrollback)
{
scrollback_save_screen();
@@ -1534,7 +1534,7 @@ scroll_reset:
if (vsp->scrolling < 0)
vsp->scrolling = 0;
- if (vsp->scrolling <= vsp->screen_rows)
+ if (vsp->scrolling <= vsp->row)
{
vsp->scrolling = 0;
scrollback_restore_screen();