mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-16 07:11:05 +01:00
Remove unneeded code left from testing
This commit is contained in:
parent
8bf5c1da27
commit
b8b68d9946
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=32174
@ -74,18 +74,6 @@ void _nc_scroll_window(WINDOW *win, int n, short const top, short const bottom,
|
|||||||
int physical = FALSE;
|
int physical = FALSE;
|
||||||
int i;
|
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)
|
if (n > lines)
|
||||||
n = lines;
|
n = lines;
|
||||||
else if (-n > lines)
|
else if (-n > lines)
|
||||||
@ -94,7 +82,8 @@ int i;
|
|||||||
/* as an optimization, if the scrolling region is the entire screen
|
/* as an optimization, if the scrolling region is the entire screen
|
||||||
scroll the physical 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
|
&& !memory_above && !memory_below
|
||||||
&& ((((win->_begy+top == 0 && win->_begy+bottom == lines - 1)
|
&& ((((win->_begy+top == 0 && win->_begy+bottom == lines - 1)
|
||||||
|| change_scroll_region)
|
|| change_scroll_region)
|
||||||
|
Loading…
Reference in New Issue
Block a user