summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1994-09-24 14:15:16 +0000
committerache <ache@FreeBSD.org>1994-09-24 14:15:16 +0000
commit58acd4e66c3f23a40e9f4d80d8d23557c480592c (patch)
tree8fb6b91d39dc0be06be3d5a5545739a80fc3dad4 /lib
parent5d9042e83794f8e3de36c6fa6f24fd13c4886382 (diff)
downloadFreeBSD-src-58acd4e66c3f23a40e9f4d80d8d23557c480592c.zip
FreeBSD-src-58acd4e66c3f23a40e9f4d80d8d23557c480592c.tar.gz
Fix bug with scroll region parameters (x changed to y)
Diffstat (limited to 'lib')
-rw-r--r--lib/libcurses/tty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcurses/tty.c b/lib/libcurses/tty.c
index 6525539..47826ba 100644
--- a/lib/libcurses/tty.c
+++ b/lib/libcurses/tty.c
@@ -229,7 +229,7 @@ __startwin()
tputs(TI, 0, __cputchar);
tputs(VS, 0, __cputchar);
if (curscr != NULL && __usecs)
- __set_scroll_region(0, curscr->maxx - 1, 0, 0);
+ __set_scroll_region(0, curscr->maxy - 1, 0, 0);
}
void
@@ -258,8 +258,8 @@ endwin()
curscr->flags &= ~__WSTANDOUT;
}
if (__usecs)
- __set_scroll_region(0, curscr->maxx - 1, 0, 0);
- __mvcur(curscr->cury, curscr->cury, curscr->maxy - 1, 0, 0);
+ __set_scroll_region(0, curscr->maxy - 1, 0, 0);
+ __mvcur(curscr->curx, curscr->cury, curscr->maxy - 1, 0, 0);
}
(void)tputs(VE, 0, __cputchar);
OpenPOWER on IntegriCloud