Skip to content

Commit f1c653e

Browse files
committed
wip
1 parent ac81408 commit f1c653e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/msgfmt/message_box.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package msgfmt
22

33
import (
4-
"fmt"
54
"strings"
65
)
76

@@ -71,10 +70,10 @@ func removeOpencodeMessageBox(msg string) string {
7170
// ┃ ┃
7271
// We only check for the first ┃ and then an empty line above it - as sometimes the full input block does not load within a snapshot,
7372
// this leads to displaying a bunch of newlines.
74-
for i := len(lines) - 2; i >= 1; i-- {
73+
for i := len(lines) - 1; i >= 2; i-- {
7574
if strings.ReplaceAll(lines[i-2], " ", "") != "┃┃" &&
7675
strings.ReplaceAll(lines[i], " ", "") == "┃┃" {
77-
fmt.Printf("Magic at line: %d, %s\n", i, lines[i])
76+
//fmt.Printf("Magic at line: %d, %s\n", i, lines[i])
7877
lines = lines[:i-1]
7978
break
8079
}

0 commit comments

Comments
 (0)