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

Merge pull request #2 from aelmahmoudy/underline_links

Underline links even in numbered links mode
This commit is contained in:
rkd77 2017-11-22 11:42:02 +01:00 committed by GitHub
commit 2b786ac7fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -349,11 +349,6 @@ get_format_screen_char(struct html_context *html_context,
copy_struct(&ta_cache, &format.style);
struct text_style final_style = format.style;
if (link_state != LINK_STATE_NONE
&& html_context->options->underline_links) {
final_style.attr |= AT_UNDERLINE;
}
get_screen_char_template(&schar_cache, html_context->options, final_style);
}
@ -361,6 +356,10 @@ get_format_screen_char(struct html_context *html_context,
^ !!renderer_context.nosearchable) {
schar_cache.attr ^= SCREEN_ATTR_UNSEARCHABLE;
}
if (link_state != LINK_STATE_NONE
&& html_context->options->underline_links) {
schar_cache.attr |= SCREEN_ATTR_UNDERLINE;
}
return &schar_cache;
}