+ end = beg + num;
+ if (end > curscr->_maxy + 1)
+ end = curscr->_maxy + 1;
+ if (end > win->_maxy + 1)
+ end = win->_maxy + 1;
+
+ len = (win->_maxx + 1);
+ if (len > (size_t) (curscr->_maxx + 1))
+ len = (size_t) (curscr->_maxx + 1);
+ len *= sizeof(curscr->_line[0].text[0]);
+
+ for (i = beg; i < end; i++) {
+ int crow = i + win->_begy;
+
+ memset(curscr->_line[crow].text + win->_begx, 0, len);
+ _nc_make_oldhash(crow);
+ }
+
+ returnCode(OK);