diff options
| author | 2000-06-04 18:09:16 +0000 | |
|---|---|---|
| committer | 2000-06-04 18:09:16 +0000 | |
| commit | f433c99d14317c37bbdf25aebca04b03210ad67b (patch) | |
| tree | d1bde47bf99232e77aed6faa2d6f42b2c929db39 | |
| parent | fix typo preapared -> prepared (diff) | |
| download | wireguard-openbsd-f433c99d14317c37bbdf25aebca04b03210ad67b.tar.xz wireguard-openbsd-f433c99d14317c37bbdf25aebca04b03210ad67b.zip | |
Only scroll up if we've hit the bottom of the scrolling region, not if we're
beyond it. Fixes display problems when using the BitchX irc client under
screen (/usr/ports/misc/screen) sessions.
| -rw-r--r-- | sys/arch/i386/isa/pcvt/pcvt_out.c | 4 |
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 0b209a9d23f..4c7b10157d5 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.21 2000/04/09 20:21:30 aaron Exp $ */ +/* $OpenBSD: pcvt_out.c,v 1.22 2000/06/04 18:09:16 aaron Exp $ */ /* * Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch. @@ -1304,7 +1304,7 @@ check_scroll(struct video_state *svsp) { /* we write within scroll region */ - if(svsp->cur_offset >= ((svsp->scrr_end + 1) * svsp->maxcol)) + if(svsp->cur_offset == ((svsp->scrr_end + 1) * svsp->maxcol)) { /* the following piece of code has to be protected */ /* from trying to switch to another virtual screen */ |
