mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Merge pull request #5 from aelmahmoudy/dont_underline_active_textarea
Avoid underlining active text areas.
This commit is contained in:
commit
f44fdc25ed
@ -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_flags = (doc_opts->color_flags | COLOR_DECREASE_LIGHTNESS);
|
||||||
color_mode = doc_opts->color_mode;
|
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;
|
template_.attr |= SCREEN_ATTR_UNDERLINE;
|
||||||
|
|
||||||
if (doc_opts->active_link.bold)
|
if (doc_opts->active_link.bold)
|
||||||
|
Loading…
Reference in New Issue
Block a user