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 9e874f3 commit eaab81eCopy full SHA for eaab81e
lib/msgfmt/message_box.go
@@ -79,5 +79,9 @@ func removeCodexMessageBox(msg string) string {
79
}
80
81
82
- return strings.Join(lines[messageBoxStartIdx:max(0, messageBoxEndIdx)], "\n")
+ if messageBoxEndIdx > messageBoxStartIdx {
83
+ return strings.Join(lines[messageBoxStartIdx:max(0, messageBoxEndIdx)], "\n")
84
+ }
85
+
86
+ return strings.Join(lines, "\n")
87
0 commit comments