ref: 581c0764699f92cbdde239602e69fb40662628e4
parent: 2bb041d629bf0fcabf35ec0b106d74dccb517b72
author: penny <penny@limitedideas.org>
date: Sun Aug 10 21:03:37 EDT 2025
Unpause on empty line and a gofmt pass
--- a/filehandler.go
+++ b/filehandler.go
@@ -28,8 +28,8 @@
args = args[1:]
_, pathnames, err := downloadPostImages(target)
-
- if(len(pathnames) == 0) {+
+ if len(pathnames) == 0 {//We tolerate failing to download some items but if we have none then error out
return
}
@@ -91,13 +91,13 @@
}
parsedurl, err := url.Parse(target)
-
+
if err != nil {return
}
filename := path.Base(parsedurl.Path)
-
+
if err != nil {return
}
--- a/hellclient.go
+++ b/hellclient.go
@@ -57,7 +57,7 @@
}
func (hc *Hellclient) printPauseBuffer() {- if(!hc.isPaused) {+ if !hc.isPaused { for _, action := range hc.actionBuffer {action()
}
--- a/main.go
+++ b/main.go
@@ -53,7 +53,6 @@
for { func() {line, err := rl.Readline()
-
if err != nil { if err == EOF || err == ErrInterrupt {os.Exit(0)
@@ -62,6 +61,14 @@
return
}
command, arguments := processInput(line)
+
+ //empty line
+ if command == "" && arguments == "" {+ if hc.isPaused {+ hc.pause(false)
+ }
+ return
+ }
//if we didn't get a slash command then the user is just posting
if command == "" && arguments != "" {--- a/mastodon.go
+++ b/mastodon.go
@@ -243,7 +243,7 @@
postref := "a"
plaintext := ""
idmap := make(map[mastodon.ID]*mastodon.Status)
-
+
// Enter a loop to continuously listen for events from the event channel.
for { select {--
⑨