summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-07-05 03:10:35 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-07-05 03:10:35 +0000
commitacf710c86aca2b8a6bd09fb2a1cb3e3c8bbea242 (patch)
treef5c971e187deb669414ee51880d2229e7c0c40ce /sys/arch
parent6d969856045d3927eda4e94c75f6b0a27638454a (diff)
Sigh, scrr_len represents the length of the scrolling region, not the end of
it. The last commit worked for cases where you had one large scrolling region on top (i.e., an irc client with only one channel window) but broke in cases where you had multiple windows. We must compare against scrr_end instead. Much thanks to fries@ for the heads up. pcvt is hard to debug...
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/isa/pcvt/pcvt_out.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/isa/pcvt/pcvt_out.c b/sys/arch/i386/isa/pcvt/pcvt_out.c
index e491dffe2ca..acf176f3dce 100644
--- a/sys/arch/i386/isa/pcvt/pcvt_out.c
+++ b/sys/arch/i386/isa/pcvt/pcvt_out.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcvt_out.c,v 1.24 2000/06/30 15:27:25 aaron Exp $ */
+/* $OpenBSD: pcvt_out.c,v 1.25 2000/07/05 03:10:34 aaron Exp $ */
/*
* Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch.
@@ -1303,7 +1303,7 @@ check_scroll(struct video_state *svsp)
{
/* we write within scroll region */
- if(svsp->row + 1 == svsp->scrr_len)
+ if(svsp->row == svsp->scrr_end)
{
/* the following piece of code has to be protected */
/* from trying to switch to another virtual screen */