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

Underline links even in numbered links mode

This commit is contained in:
Yozo Hida 2009-05-01 15:39:30 -04:00 committed by أحمد المحمودي (Ahmed El-Mahmoudy)
parent d8e749c0f4
commit 468e7aaff9

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;
}