summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--res/about/version.gmi3
-rw-r--r--src/ui/documentwidget.c14
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 @@
7# Release notes 7# Release notes
8 8
9## 1.10.2 9## 1.10.2
10* Fixed cancelling an input query. Now pressing Cancel will navigate back to the previous page as expected. 10* Fixed cancelling an input query. Now pressing Cancel will navigate back to the previous page as intended.
11* Gopher: Fixed navigating to parent. Set item type to 1 to show a gophermap and not the plain source.
11* macOS: Workaround for a crash when launching. Prevent event processing from being triggered while the app window is becoming visible for the first time. 12* macOS: Workaround for a crash when launching. Prevent event processing from being triggered while the app window is becoming visible for the first time.
12* Fixed a build issue on Haiku OS. 13* Fixed a build issue on Haiku OS.
13* Updated Smol Emoji: added the rest of Unicode 8 Emoji glyphs. 14* Updated Smol Emoji: added the rest of Unicode 8 Emoji glyphs.
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)
4309 if (parts.path.end[-1] == '/') break; 4309 if (parts.path.end[-1] == '/') break;
4310 parts.path.end--; 4310 parts.path.end--;
4311 } 4311 }
4312 postCommandf_Root(w->root, 4312 iString *parentUrl = collectNewRange_String((iRangecc){ constBegin_String(d->mod.url),
4313 "open url:%s", 4313 parts.path.end });
4314 cstr_Rangecc((iRangecc){ constBegin_String(d->mod.url), parts.path.end })); 4314 if (equalCase_Rangecc(parts.scheme, "gopher")) {
4315 /* Always go to a gophermap. */
4316 iZap(parts);
4317 init_Url(&parts, parentUrl);
4318 if (parts.path.start && size_Range(&parts.path) >= 2) {
4319 ((char *) parts.path.start)[1] = '1';
4320 }
4321 }
4322 postCommandf_Root(w->root, "open url:%s", cstr_String(parentUrl));
4315 } 4323 }
4316 return iTrue; 4324 return iTrue;
4317 } 4325 }