1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-30 03:26:23 -04:00

display_listbox_item(): clarify tests a bit.

This commit is contained in:
Laurent MONIN 2005-12-26 10:39:07 +01:00 committed by Laurent MONIN
parent 4af4ac8a59
commit 9683cf429b

View File

@ -361,11 +361,12 @@ display_listbox_item(struct listbox_item *item, void *data_, int *offset)
int x, y; int x, y;
tree_color = get_bfu_color(data->term, "menu.normal"); tree_color = get_bfu_color(data->term, "menu.normal");
if (item == data->box->sel || item->marked) { if (item == data->box->sel) {
unsigned char *name = (item == data->box->sel) text_color = get_bfu_color(data->term, "menu.selected");
? "menu.selected" : "menu.marked";
} else if (item->marked) {
text_color = get_bfu_color(data->term, "menu.marked");
text_color = get_bfu_color(data->term, name);
} else { } else {
text_color = tree_color; text_color = tree_color;
} }