From 8f6d0c7b1bc14b0b850679bacfbe5ecc2f629e20 Mon Sep 17 00:00:00 2001

From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi

Date: Mon, 24 Jan 2022 13:57:30 +0200

Subject: [PATCH 1/1] Gopher: Set item type to 1 when navigating to parent

As suggested in: gemini://ruario.flounder.online/gemlog/2022-01-19_Some_Gopher_improvements_for_Lagrange.gmi


res/about/version.gmi | 3 ++-

src/ui/documentwidget.c | 14 +++++++++++---

2 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/res/about/version.gmi b/res/about/version.gmi

index a6a860f2..4d67bfe6 100644

--- a/res/about/version.gmi

+++ b/res/about/version.gmi

@@ -7,7 +7,8 @@

Release notes

1.10.2

-* Fixed cancelling an input query. Now pressing Cancel will navigate back to the previous page as expected.

+* Fixed cancelling an input query. Now pressing Cancel will navigate back to the previous page as intended.

+* Gopher: Fixed navigating to parent. Set item type to 1 to show a gophermap and not the plain source.

diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c

index 93604225..4332ae8f 100644

--- a/src/ui/documentwidget.c

+++ b/src/ui/documentwidget.c

@@ -4309,9 +4309,17 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd)

             if (parts.path.end[-1] == '/') break;

             parts.path.end--;

         }

     }

     return iTrue;

 }

--

2.25.1

Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/release/patch/384d0f570ba5a1ace3a4143a245c12c795f2b89f.patch
Status Code
Success (20)
Meta
text/plain
Capsule Response Time
27.154895 milliseconds
Gemini-to-HTML Time
0.961441 milliseconds

This content has been proxied by September (ba2dc).