diff options
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r-- | src/ui/documentwidget.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 83f270bd..72867133 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -2911,6 +2911,13 @@ static void drawRun_DrawContext_(void *context, const iGmRun *run) { | |||
2911 | const iInt2 visPos = addX_I2(add_I2(run->visBounds.pos, origin), | 2911 | const iInt2 visPos = addX_I2(add_I2(run->visBounds.pos, origin), |
2912 | /* Preformatted runs can be scrolled. */ | 2912 | /* Preformatted runs can be scrolled. */ |
2913 | runOffset_DocumentWidget_(d->widget, run)); | 2913 | runOffset_DocumentWidget_(d->widget, run)); |
2914 | if (run->flags & footer_GmRunFlag) { | ||
2915 | iRect footerBack = | ||
2916 | (iRect){ visPos, init_I2(width_Rect(d->widgetBounds), run->visBounds.size.y) }; | ||
2917 | footerBack.pos.x = left_Rect(d->widgetBounds); | ||
2918 | fillRect_Paint(&d->paint, footerBack, tmBackground_ColorId); | ||
2919 | return; | ||
2920 | } | ||
2914 | fillRect_Paint(&d->paint, (iRect){ visPos, run->visBounds.size }, tmBackground_ColorId); | 2921 | fillRect_Paint(&d->paint, (iRect){ visPos, run->visBounds.size }, tmBackground_ColorId); |
2915 | if (run->linkId && ~run->flags & decoration_GmRunFlag) { | 2922 | if (run->linkId && ~run->flags & decoration_GmRunFlag) { |
2916 | fg = linkColor_GmDocument(doc, run->linkId, isHover ? textHover_GmLinkPart : text_GmLinkPart); | 2923 | fg = linkColor_GmDocument(doc, run->linkId, isHover ? textHover_GmLinkPart : text_GmLinkPart); |