We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac81408 commit f1c653eCopy full SHA for f1c653e
lib/msgfmt/message_box.go
@@ -1,7 +1,6 @@
1
package msgfmt
2
3
import (
4
- "fmt"
5
"strings"
6
)
7
@@ -71,10 +70,10 @@ func removeOpencodeMessageBox(msg string) string {
71
70
// ┃ ┃
72
// 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,
73
// this leads to displaying a bunch of newlines.
74
- for i := len(lines) - 2; i >= 1; i-- {
+ for i := len(lines) - 1; i >= 2; i-- {
75
if strings.ReplaceAll(lines[i-2], " ", "") != "┃┃" &&
76
strings.ReplaceAll(lines[i], " ", "") == "┃┃" {
77
- fmt.Printf("Magic at line: %d, %s\n", i, lines[i])
+ //fmt.Printf("Magic at line: %d, %s\n", i, lines[i])
78
lines = lines[:i-1]
79
break
80
}
0 commit comments