diff options
author | ache <ache@FreeBSD.org> | 1994-09-24 14:15:16 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1994-09-24 14:15:16 +0000 |
commit | 58acd4e66c3f23a40e9f4d80d8d23557c480592c (patch) | |
tree | 8fb6b91d39dc0be06be3d5a5545739a80fc3dad4 /lib/libcurses | |
parent | 5d9042e83794f8e3de36c6fa6f24fd13c4886382 (diff) | |
download | FreeBSD-src-58acd4e66c3f23a40e9f4d80d8d23557c480592c.zip FreeBSD-src-58acd4e66c3f23a40e9f4d80d8d23557c480592c.tar.gz |
Fix bug with scroll region parameters (x changed to y)
Diffstat (limited to 'lib/libcurses')
-rw-r--r-- | lib/libcurses/tty.c | 6 |
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); |