diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-07-29 16:40:07 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-07-29 16:40:19 +0300 |
commit | 72e095cf987d6bb2bc2212035a8c5498f3b6d329 (patch) | |
tree | 75e1191db056794d252ff6c6384f3763f2a0ad4b /src/ui/documentwidget.c | |
parent | 67750111c420fcf97e31289bb4770cb7f69c426e (diff) |
Moved History to its own type
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r-- | src/ui/documentwidget.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index e908f090..52628143 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -903,10 +903,10 @@ static void drawRun_DrawContext_(void *context, const iGmRun *run) { | |||
903 | /* Text markers. */ | 903 | /* Text markers. */ |
904 | fillRange_DrawContext_(d, run, teal_ColorId, d->widget->foundMark, &d->inFoundMark); | 904 | fillRange_DrawContext_(d, run, teal_ColorId, d->widget->foundMark, &d->inFoundMark); |
905 | fillRange_DrawContext_(d, run, brown_ColorId, d->widget->selectMark, &d->inSelectMark); | 905 | fillRange_DrawContext_(d, run, brown_ColorId, d->widget->selectMark, &d->inSelectMark); |
906 | if (run->linkId) { | 906 | if (run->linkId && !isEmpty_Rect(run->bounds)) { |
907 | fg = linkColor_GmDocument(doc, run->linkId); | 907 | fg = white_ColorId; |
908 | if (isHover && ~linkFlags_GmDocument(doc, run->linkId) & content_GmLinkFlag) { | 908 | if (isHover || linkFlags_GmDocument(doc, run->linkId) & content_GmLinkFlag) { |
909 | fg = white_ColorId; | 909 | fg = linkColor_GmDocument(doc, run->linkId); |
910 | } | 910 | } |
911 | } | 911 | } |
912 | drawString_Text(run->font, visPos, fg, &text); | 912 | drawString_Text(run->font, visPos, fg, &text); |