From 2d81886dda3fe1e86f8fbcde39cc3bf490332616 Mon Sep 17 00:00:00 2001 From: makeworld Date: Tue, 28 Jul 2020 19:17:15 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Repeated=20redirects=20don't=20l?= =?UTF-8?q?eave=20"Loading..."=20-=20fixes=20#53?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + display/private.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e6270e..8305f20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Any error that occurs when downloading a file will be displayed, and the partially downloaded file will be deleted - Allow for opening a new tab while the current one is loading - Pressing Escape after typing in the bottom bar no longer jumps you back to the top of the page +- Repeated redirects where the last one is cancelled by the user doesn't leave the `Loading...` text in the bottom bar (#53) ## [1.3.0] - 2020-07-10 diff --git a/display/private.go b/display/private.go index 1c27c20..777d048 100644 --- a/display/private.go +++ b/display/private.go @@ -319,7 +319,7 @@ func handleURL(t *tab, u string) (string, bool) { if res.Status == gemini.StatusRedirectPermanent { go cache.AddRedir(u, redir) } - return handleURL(t, redir) + return ret(handleURL(t, redir)) } return ret("", false) case 40: