Lagrange [work/v1.7]

GmDocument: Image link icon

=> 286a707693f3ac4695279291482a7f142863b452

diff --git a/src/defs.h b/src/defs.h
index f199fd2b..a81d57f1 100644
--- a/src/defs.h
+++ b/src/defs.h
@@ -157,6 +157,7 @@ iLocalDef int acceptKeyMod_ReturnKeyBehavior(int behavior) {
 #define undo_Icon           "\u23ea"
 #define select_Icon         "\u2b1a"
 #define downAngle_Icon      "\ufe40"
+#define photo_Icon          "\U0001f5bb"
 
 #if defined (iPlatformApple)
 #   define shift_Icon       "\u21e7"
diff --git a/src/gmdocument.c b/src/gmdocument.c
index 97c7b41b..22f409a6 100644
--- a/src/gmdocument.c
+++ b/src/gmdocument.c
@@ -508,6 +508,7 @@ static void doLayout_GmDocument_(iGmDocument *d) {
     static const char *magnifyingGlass = "\U0001f50d";
     static const char *pointingFinger  = "\U0001f449";
     static const char *uploadArrow     = upload_Icon;
+    static const char *image           = photo_Icon;
     clear_Array(&d->layout);
     clearLinks_GmDocument_(d);
     clear_Array(&d->headings);
@@ -766,6 +767,7 @@ static void doLayout_GmDocument_(iGmDocument *d) {
                                              : scheme == finger_GmLinkScheme   ? pointingFinger
                                              : scheme == mailto_GmLinkScheme   ? envelope
                                              : link->flags & remote_GmLinkFlag ? globe
+                                             : link->flags & imageFileExtension_GmLinkFlag ? image
                                                                                : arrow);
             /* Custom link icon is shown on local Gemini links only. */
             if (!isEmpty_Range(&link->labelIcon)) {
Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.7/cdiff/286a707693f3ac4695279291482a7f142863b452
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
415.519048 milliseconds
Gemini-to-HTML Time
0.348706 milliseconds

This content has been proxied by September (ba2dc).