Lagrange [work/v1.6]

DocumentWidget: Spaces in image URL

=> b4699418195cd7d6057aeef256ed2fc824f3862d

diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 599e7ef3..7f8d70a3 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -1469,7 +1469,9 @@ static void updateDocument_DocumentWidget_(iDocumentWidget *d,
                             linkTitle =
                                 baseName_Path(collect_String(newRange_String(parts.path))).start;
                         }
-                        format_String(&str, "=> %s %s\n", cstr_String(d->mod.url), linkTitle);
+                        format_String(&str, "=> %s %s\n",
+                                      cstr_String(withSpacesEncoded_String(d->mod.url)),
+                                      linkTitle);
                         setData_Media(media_GmDocument(d->doc),
                                       imgLinkId,
                                       mimeStr,
@@ -4092,7 +4094,7 @@ static void drawRun_DrawContext_(void *context, const iGmRun *run) {
     }
 #endif
     /* Fill the background. */ {
-        if (run->linkId && linkFlags & isOpen_GmLinkFlag) {
+        if (run->linkId && linkFlags & isOpen_GmLinkFlag && ~linkFlags & content_GmLinkFlag) {
             /* Open links get a highlighted background. */
             int bg = tmBackgroundOpenLink_ColorId;
             const int frame = tmFrameOpenLink_ColorId;
Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.6/cdiff/b4699418195cd7d6057aeef256ed2fc824f3862d
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
73.122153 milliseconds
Gemini-to-HTML Time
0.146475 milliseconds

This content has been proxied by September (3851b).