summaryrefslogtreecommitdiff
path: root/src/gmdocument.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-05-10 19:13:06 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-05-10 19:13:06 +0300
commit89a73e2befd3d614f3d77574082bb9c4e529ff38 (patch)
tree36afff0b3545936c4befda0fca7357c675166c37 /src/gmdocument.c
parent75df73293c3ff154699c30e7756d271b93938492 (diff)
GmDocument: Monospace link styling
Monospace links should remain monospace regardless of visited state. IssueID #274
Diffstat (limited to 'src/gmdocument.c')
-rw-r--r--src/gmdocument.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c
index 6ea9348e..466169fc 100644
--- a/src/gmdocument.c
+++ b/src/gmdocument.c
@@ -713,7 +713,7 @@ static void doLayout_GmDocument_(iGmDocument *d) {
713 } 713 }
714 } 714 }
715 /* Visited links are never bold. */ 715 /* Visited links are never bold. */
716 if (run.linkId && linkFlags_GmDocument(d, run.linkId) & visited_GmLinkFlag) { 716 if (!isMono && run.linkId && linkFlags_GmDocument(d, run.linkId) & visited_GmLinkFlag) {
717 run.font = paragraph_FontId; 717 run.font = paragraph_FontId;
718 } 718 }
719 iAssert(!isEmpty_Range(&runLine)); /* must have something at this point */ 719 iAssert(!isEmpty_Range(&runLine)); /* must have something at this point */