summaryrefslogtreecommitdiffstats
path: root/lib/libncurses
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1998-01-02 05:05:20 +0000
committerache <ache@FreeBSD.org>1998-01-02 05:05:20 +0000
commit776489e757c7dc6d4d3e9d97555695ad54fdf5a8 (patch)
tree17765e13d35d7568714bc3dfcc09e22028bc7872 /lib/libncurses
parent533db3b201ab193b971a34bcef090d11bb0f4d15 (diff)
downloadFreeBSD-src-776489e757c7dc6d4d3e9d97555695ad54fdf5a8.zip
FreeBSD-src-776489e757c7dc6d4d3e9d97555695ad54fdf5a8.tar.gz
Remove unneeded code left from testing
Diffstat (limited to 'lib/libncurses')
-rw-r--r--lib/libncurses/lib_scroll.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/lib/libncurses/lib_scroll.c b/lib/libncurses/lib_scroll.c
index 5dd55d6..3a60836 100644
--- a/lib/libncurses/lib_scroll.c
+++ b/lib/libncurses/lib_scroll.c
@@ -74,18 +74,6 @@ void _nc_scroll_window(WINDOW *win, int n, short const top, short const bottom,
int physical = FALSE;
int i;
- if (top == bottom) {
- int sy, sx;
-
- getyx(win, sy, sx);
- win->_curx = 0;
- win->_cury = top;
- wclrtoeol(win);
- win->_curx = sx;
- win->_cury = sy;
- return;
- }
-
if (n > lines)
n = lines;
else if (-n > lines)
@@ -94,7 +82,8 @@ int i;
/* as an optimization, if the scrolling region is the entire screen
scroll the physical screen */
- if ( win->_begx == 0 && win->_maxx == columns - 1
+ if ( top != bottom
+ && win->_begx == 0 && win->_maxx == columns - 1
&& !memory_above && !memory_below
&& ((((win->_begy+top == 0 && win->_begy+bottom == lines - 1)
|| change_scroll_region)
OpenPOWER on IntegriCloud