From c58b40def2b655a99cf3281ca7f36aad84ed6db2 Mon Sep 17 00:00:00 2001 From: sloum Date: Thu, 14 May 2020 08:28:39 -0700 Subject: [PATCH] Removes goroutines in search that were causing input issues on gemini cgi scripts --- client.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client.go b/client.go index 5322c08..bb580f1 100644 --- a/client.go +++ b/client.go @@ -711,11 +711,11 @@ func (c *client) search(query, url, question string) { } switch u.Scheme { case "gopher": - go c.Visit(fmt.Sprintf("%s\t%s", u.Full, entry)) + c.Visit(fmt.Sprintf("%s\t%s", u.Full, entry)) case "gemini": // TODO url escape the entry variable escapedEntry := entry - go c.Visit(fmt.Sprintf("%s?%s", u.Full, escapedEntry)) + c.Visit(fmt.Sprintf("%s?%s", u.Full, escapedEntry)) case "http", "https": c.Visit(u.Full) default: @@ -996,7 +996,7 @@ func (c *client) handleGemini(u Url) { c.saveFileFromData(capsule.Content, filename) } case 3: - c.SetMessage(fmt.Sprintf("Follow redirect (y/n): %s?", capsule.Content), false) + c.SetMessage(fmt.Sprintf("Follow redirect? (y/n): %s", capsule.Content), false) c.DrawMessage() ch := cui.Getch() if ch == 'y' || ch == 'Y' {