See bug #1076.
---
 src/document/html/renderer.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/document/html/renderer.c b/src/document/html/renderer.c
index ec6c312..bfbd9c7 100644
--- a/src/document/html/renderer.c
+++ b/src/document/html/renderer.c
@@ -350,11 +350,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);
        }
 
@@ -362,6 +357,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;
 }
-- 
1.6.3

_______________________________________________
elinks-dev mailing list
elinks-dev@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-dev

Reply via email to