From 2a09148e5aba2da88fe4172d0cd7c2e8f073fd64 Mon Sep 17 00:00:00 2001 From: Yozo Hida Date: Fri, 1 May 2009 15:39:30 -0400 Subject: [PATCH] Avoid underlining active text areas. They already have underscores, so underlining them is redundant (and looks a bit strange). --- src/viewer/text/link.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/viewer/text/link.c b/src/viewer/text/link.c index b91d8fc4..d94d4d95 100644 --- a/src/viewer/text/link.c +++ b/src/viewer/text/link.c @@ -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_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; if (doc_opts->active_link.bold)