lines_alloc
if (screen_lines(SP_PARM) > lines_alloc(SP_PARM)) {
lines_alloc(SP_PARM) = 0;
lines_alloc(SP_PARM) = screen_lines(SP_PARM);