rem: if (lPtr->itemCount>0) { if (lPtr->topItem+lPtr->fullFitLines+lPtr->flags.dontFitAll > lPtr->itemCount) { lim = lPtr->itemCount - lPtr->topItem;
add: if (WMGetBagItemCount(lPtr->items) > 0) { if (lPtr->topItem+lPtr->fullFitLines+lPtr->flags.dontFitAll > WMGetBagItemCount(lPtr->items)) {  lim = WMGetBagItemCount(lPtr->items) - lPtr->topItem;
context: paintList(List *lPtr){    W_Screen *scrPtr = lPtr->view->screen;    int i, lim;    if (!lPtr->view->flags.mapped)	return;    if (lPtr->itemCount>0) {	if (lPtr->topItem+lPtr->fullFitLines+lPtr->flags.dontFitAll > lPtr->itemCount) {	    lim = lPtr->itemCount - lPtr->topItem;	    XClearArea(scrPtr->display, lPtr->view->window, 19,		       2+lim*lPtr->itemHeight, lPtr->view->size.width-21,		       lPtr->view->size.height-lim*lPtr->itemHeight-3, False);	} else {	    lim = lPtr->fullFitLines + lPtr->flags.dontFitAll;	}	for (i = lPtr->topItem; i < lPtr->topItem + lim; i++) {	    paintItem(lPtr, i);	}    } else {	XClearWindow(scrPtr->display, lPtr->view->window);    }    W_DrawRelief(scrPtr, lPtr->view->window, 0, 0, lPtr->view->size.width,		 lPtr->view->size.height, WRSunken);}