rem: if (row < lPtr->fullFitLines+lPtr->flags.dontFitAll-lPtr->topItem) { paintList(lPtr); }
context: WMInsertListItem(WMList *lPtr, int row, char *text){    WMListItem *item;    CHECK_CLASS(lPtr, WC_List);    item = wmalloc(sizeof(WMListItem));    memset(item, 0, sizeof(WMListItem));    item->text = wstrdup(text);    if (lPtr->selectedItem >= row && lPtr->selectedItem >= 0	&& row >= 0)	lPtr->selectedItem++;        if (row < 0)	row = WMGetBagItemCount(lPtr->items);    WMInsertInBag(lPtr->items, row, item);    if (row < lPtr->fullFitLines+lPtr->flags.dontFitAll-lPtr->topItem) {	paintList(lPtr);    }    /* update the scroller when idle, so that we don't waste time     * updating it when another item is going to be added later */    if (!lPtr->idleID) {	lPtr->idleID = WMAddIdleHandler((WMCallback*)updateScroller, lPtr);    }     return item;}