summaryrefslogtreecommitdiffstats
path: root/lib/libncurses
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-03-27 01:19:14 +0000
committerache <ache@FreeBSD.org>1995-03-27 01:19:14 +0000
commitfeaddc78a48d91d7d4c0e28694c788f0dfa6d4a7 (patch)
tree551edb68e18c001644d82e174605acdddd101f2f /lib/libncurses
parent75758ba1dcf3f8a8c8ccaee6b5c651cc30532641 (diff)
downloadFreeBSD-src-feaddc78a48d91d7d4c0e28694c788f0dfa6d4a7.zip
FreeBSD-src-feaddc78a48d91d7d4c0e28694c788f0dfa6d4a7.tar.gz
Fix bug using CSR for partial scrolling
Diffstat (limited to 'lib/libncurses')
-rw-r--r--lib/libncurses/lib_scroll.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libncurses/lib_scroll.c b/lib/libncurses/lib_scroll.c
index 81d7189..77bb886 100644
--- a/lib/libncurses/lib_scroll.c
+++ b/lib/libncurses/lib_scroll.c
@@ -114,7 +114,7 @@ int i;
&& (parm_rindex || scroll_reverse)
) {
if (change_scroll_region &&
- (win->_begy+win->_regtop != 0 || win->_begy+win->_regbottom == lines - 1)
+ (win->_begy+win->_regtop != 0 || win->_begy+win->_regbottom != lines - 1)
)
putp(tparm(change_scroll_region, win->_begy+win->_regtop, win->_begy+win->_regbottom));
i = abs(n);
@@ -126,7 +126,7 @@ int i;
putp(scroll_reverse);
}
if (change_scroll_region &&
- (win->_begy+win->_regtop != 0 || win->_begy+win->_regbottom == lines - 1)
+ (win->_begy+win->_regtop != 0 || win->_begy+win->_regbottom != lines - 1)
)
putp(tparm(change_scroll_region, 0, lines-1));
} else {
@@ -156,7 +156,7 @@ int i;
&& (parm_index || scroll_forward)
) {
if (change_scroll_region &&
- (win->_begy+win->_regtop != 0 || win->_begy+win->_regbottom == lines - 1)
+ (win->_begy+win->_regtop != 0 || win->_begy+win->_regbottom != lines - 1)
)
putp(tparm(change_scroll_region, win->_begy+win->_regtop, win->_begy+win->_regbottom));
mvcur(-1, -1, win->_begy+win->_regbottom, 0);
@@ -168,7 +168,7 @@ int i;
putp(scroll_forward);
}
if (change_scroll_region &&
- (win->_begy+win->_regtop != 0 || win->_begy+win->_regbottom == lines - 1)
+ (win->_begy+win->_regtop != 0 || win->_begy+win->_regbottom != lines - 1)
)
putp(tparm(change_scroll_region, 0, lines-1));
} else {
OpenPOWER on IntegriCloud