rem: if (item->isBranch) { WMSetTextFieldText(panel->fileField, NULL); } else { WMSetTextFieldText(panel->fileField, item->text); }
add: if (item->isBranch) { WMSetTextFieldText(panel->fileField, rest); } else { WMSetTextFieldText(panel->fileField, item->text); }
context: WMSetFilePanelDirectory(WMFilePanel *panel, char *path){    WMList *list;    WMListItem *item;    int col;        WMSetBrowserPath(panel->browser, path);    col = WMGetBrowserNumberOfColumns(panel->browser) - 1;    list = WMGetBrowserListInColumn(panel->browser, col);    if (list && (item = WMGetListSelectedItem(list))) {	if (item->isBranch) {	    WMSetTextFieldText(panel->fileField, NULL);	} else {	    WMSetTextFieldText(panel->fileField, item->text);	}    } else {	WMSetTextFieldText(panel->fileField, path);    }}