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 192cbea commit 1879466Copy full SHA for 1879466
lib/msgfmt/message_box.go
@@ -70,9 +70,10 @@ func removeOpencodeMessageBox(msg string) string {
70
// ┃ ┃
71
// 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,
72
// this leads to displaying a bunch of newlines.
73
- for i := len(lines) - 1; i >= 1; i-- {
74
- if strings.TrimSpace(lines[i-1]) == "" &&
75
- strings.ReplaceAll(lines[i], " ", "") == "┃┃" {
+ for i := len(lines) - 2; i >= 1; i-- {
+ if strings.ReplaceAll(lines[i-1], " ", "") == "┃┃" &&
+ strings.ReplaceAll(lines[i+1], " ", "") == "┃┃" &&
76
+ strings.ReplaceAll(lines[i], " ", "") == "┃>┃" {
77
lines = lines[:i-1]
78
break
79
}
0 commit comments