aboutsummaryrefslogtreecommitdiff
path: root/lib/libncurses
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>1999-04-25 22:29:30 +0000
committerWarner Losh <imp@FreeBSD.org>1999-04-25 22:29:30 +0000
commitdcb0ae4ed8d8ff789903b161e53031f3f9280cc2 (patch)
tree556cd5632da8c24c38015ac4c816c0cc5dc8d5a4 /lib/libncurses
parent859663719d47f9d552103f222429ecf7530c4240 (diff)
Notes
Diffstat (limited to 'lib/libncurses')
-rw-r--r--lib/libncurses/lib_newterm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libncurses/lib_newterm.c b/lib/libncurses/lib_newterm.c
index 95ef1eb79dffe..4b49c8debf13d 100644
--- a/lib/libncurses/lib_newterm.c
+++ b/lib/libncurses/lib_newterm.c
@@ -123,11 +123,12 @@ char *use_it = _ncurses_copyright;
stolen = topstolen = 0;
for (rsp = rippedoff; rsp->line; rsp++) {
- if (rsp->hook)
+ if (rsp->hook) {
if (rsp->line < 0)
rsp->hook(newwin(1,COLS, LINES-1,0), COLS);
else
rsp->hook(newwin(1,COLS, topstolen++,0), COLS);
+ }
--LINES;
stolen++;
}