forked from sloum/bombadillo
Removes goroutines in search that were causing input issues on gemini cgi scripts
This commit is contained in:
parent
36ae4a228f
commit
c58b40def2
|
@ -711,11 +711,11 @@ func (c *client) search(query, url, question string) {
|
||||||
}
|
}
|
||||||
switch u.Scheme {
|
switch u.Scheme {
|
||||||
case "gopher":
|
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":
|
case "gemini":
|
||||||
// TODO url escape the entry variable
|
// TODO url escape the entry variable
|
||||||
escapedEntry := entry
|
escapedEntry := entry
|
||||||
go c.Visit(fmt.Sprintf("%s?%s", u.Full, escapedEntry))
|
c.Visit(fmt.Sprintf("%s?%s", u.Full, escapedEntry))
|
||||||
case "http", "https":
|
case "http", "https":
|
||||||
c.Visit(u.Full)
|
c.Visit(u.Full)
|
||||||
default:
|
default:
|
||||||
|
@ -996,7 +996,7 @@ func (c *client) handleGemini(u Url) {
|
||||||
c.saveFileFromData(capsule.Content, filename)
|
c.saveFileFromData(capsule.Content, filename)
|
||||||
}
|
}
|
||||||
case 3:
|
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()
|
c.DrawMessage()
|
||||||
ch := cui.Getch()
|
ch := cui.Getch()
|
||||||
if ch == 'y' || ch == 'Y' {
|
if ch == 'y' || ch == 'Y' {
|
||||||
|
|
Loading…
Reference in New Issue