1
0
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:
rkd77 2017-11-22 11:53:32 +01:00 committed by GitHub
commit f44fdc25ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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_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)