aboutsummaryrefslogtreecommitdiff
path: root/lib/libcurses/refresh.c
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1996-07-12 18:57:58 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1996-07-12 18:57:58 +0000
commit51295a4d3e4c551df85249433c490208dc7fd23d (patch)
treec116431af8e1f042b25e0f70c63c437cf7ff8d63 /lib/libcurses/refresh.c
parentaf7a29993083b1562f01c87bb774fbe4fc3579e7 (diff)
Notes
Diffstat (limited to 'lib/libcurses/refresh.c')
-rw-r--r--lib/libcurses/refresh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcurses/refresh.c b/lib/libcurses/refresh.c
index 6350f1f1292f..1719454b3650 100644
--- a/lib/libcurses/refresh.c
+++ b/lib/libcurses/refresh.c
@@ -745,7 +745,7 @@ scrolln(starts, startw, curs, bot, top)
if (n > 0) {
/* Scroll up the screen. */
- if ((!DB && SF != NULL || n == 1) && bot == curscr->maxy - 1 && top == 0) {
+ if (((!DB && SF != NULL) || n == 1) && (bot == curscr->maxy - 1) && top == 0) {
__mvcur(oy, ox, curscr->maxy - 1, 0, 1);
if (n == 1)
goto f_nl1;
@@ -807,7 +807,7 @@ scrolln(starts, startw, curs, bot, top)
/* Scroll down the screen. */
if (!DA && (SR != NULL || sr != NULL) && bot == curscr->maxy - 1 && top == 0) {
__mvcur(oy, ox, 0, 0, 1);
- if (SR == NULL || sr != NULL && -n == 1) {
+ if (SR == NULL || (sr != NULL && -n == 1)) {
for (i = n; i < 0; i++)
tputs(sr, 1, __cputchar);
} else