rem: while (item) {
add: for (i = 0; i < WMGetBagItemCount(items); i++) { item = WMGetFromBag(items, i);
context: closestListItem(WMList *list, char *text, Bool exact){    WMListItem *item = WMGetListItem(list, 0);    int i = 0;    int len = strlen(text);    if (len==0)	return -1;    while (item) {        if (strlen(item->text) >= len &&            ((exact && strcmp(item->text, text)==0) ||             (!exact && strncmp(item->text, text, len)==0))) {	    return i;	}	item = item->nextPtr;	i++;    }    return -1;}