shithub: hell

Download patch

ref: d99532adbd8bfa844ae8a7f783bd09684ed592ae
parent: d96564855f4111989b54fe0089209a117c62362d
author: penny <penny@limitedideas.org>
date: Mon Oct 27 09:26:46 EDT 2025

gofmt pass

--- a/readline.go
+++ b/readline.go
@@ -3,9 +3,10 @@
 package main
 
 import (
-	native "github.com/ergochat/readline"
 	"io"
 	"os"
+
+	native "github.com/ergochat/readline"
 )
 
 type readline struct {
--- a/readline_plan9.go
+++ b/readline_plan9.go
@@ -1,11 +1,11 @@
 package main
 
 import (
+	"bufio"
 	"fmt"
 	"io"
 	"os"
 	"strings"
-	"bufio"
 )
 
 // not relevant
@@ -17,8 +17,8 @@
 
 type readline struct {
 	config Config
-	multi bool
-	ctl *os.File
+	multi  bool
+	ctl    *os.File
 }
 
 type Config struct {
@@ -41,7 +41,6 @@
 	return &readline{config: *config, ctl: ctl}, nil
 }
 
-
 func (rl *readline) ReadLineWithConfig(cfg *Config) (string, error) {
 	if rl.multi {
 		fmt.Print("MULTILINE ")
@@ -60,7 +59,9 @@
 				continue
 			}
 		}
-		if !rl.multi {break}
+		if !rl.multi {
+			break
+		}
 	}
 	return strings.TrimSpace(sb.String()), nil
 }
@@ -77,7 +78,8 @@
 	rl.config.Prompt = prompt
 }
 
-func (rl *readline) SetDefault(editline string) {	rl.multi = true
+func (rl *readline) SetDefault(editline string) {
+	rl.multi = true
 	runes := []rune(editline)
 	rl.ctl.WriteString("holdon")
 	for r, _ := range runes {
@@ -99,4 +101,4 @@
 }
 
 func enablePipeHack(rl *readline) {
-}
\ No newline at end of file
+}
--