1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-29 01:45:34 +00: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;
tree_color = get_bfu_color(data->term, "menu.normal");
if (item == data->box->sel || item->marked) {
unsigned char *name = (item == data->box->sel)
? "menu.selected" : "menu.marked";
if (item == data->box->sel) {
text_color = get_bfu_color(data->term, "menu.selected");
} else if (item->marked) {
text_color = get_bfu_color(data->term, "menu.marked");
text_color = get_bfu_color(data->term, name);
} else {
text_color = tree_color;
}