Lagrange [work/v1.17]

Cleanup

=> cf1adec04d7c6e0f05e67b7700be485f016fe038

diff --git a/src/ui/text.c b/src/ui/text.c
index 2dd778fd..0f511adb 100644
--- a/src/ui/text.c
+++ b/src/ui/text.c
@@ -693,7 +693,7 @@ static iRect run_Font_(iFont *d, const iRunArgs *args) {
             /* We don't have the composited Emojis. */
             if (isEmoji_Char(prevCh)) {
                 /* skip */
-                ch = nextChar_(&chPos, args->text.end);
+                nextChar_(&chPos, args->text.end);
                 ch = nextChar_(&chPos, args->text.end);
             }
         }
@@ -776,11 +776,13 @@ static iRect run_Font_(iFont *d, const iRunArgs *args) {
         int x2 = x1 + glyph->rect[hoff].size.x;
         /* Out of the allotted space? */
         if (args->xposLimit > 0 && x2 > args->xposLimit) {
-            if (lastWordEnd != args->text.start) {
-                *args->continueFrom_out = lastWordEnd;
-            }
-            else {
-                *args->continueFrom_out = currentPos; /* forced break */
+            if (args->continueFrom_out) {
+                if (lastWordEnd != args->text.start) {
+                    *args->continueFrom_out = lastWordEnd;
+                }
+                else {
+                    *args->continueFrom_out = currentPos; /* forced break */
+                }
             }
             break;
         }
Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.17/cdiff/cf1adec04d7c6e0f05e67b7700be485f016fe038
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
116.072043 milliseconds
Gemini-to-HTML Time
0.434263 milliseconds

This content has been proxied by September (ba2dc).