1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Avoid underlining active text areas.

They already have underscores, so underlining them is redundant (and looks a
bit strange).
This commit is contained in:
Yozo Hida 2009-05-01 15:39:30 -04:00 committed by أحمد المحمودي (Ahmed El-Mahmoudy)
parent d8e749c0f4
commit 2a09148e5a

View File

@ -181,7 +181,8 @@ init_link_drawing(struct document_view *doc_view, struct link *link, int invert)
color_flags = (doc_opts->color_flags | COLOR_DECREASE_LIGHTNESS);
color_mode = doc_opts->color_mode;
if (doc_opts->active_link.underline)
/* avoid underlining text input areas which has underscores */
if (doc_opts->active_link.underline && link->type != LINK_FIELD)
template_.attr |= SCREEN_ATTR_UNDERLINE;
if (doc_opts->active_link.bold)