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 daa0681 commit 0dece42Copy full SHA for 0dece42
lib/msgfmt/msgfmt.go
@@ -170,7 +170,7 @@ func RemoveUserInput(msgRaw string, userInputRaw string) string {
170
lastUserInputLineIdx := msgRuneLineLocations[userInputEndIdx]
171
172
// In case of Gemini, the user input echoed back is wrapped in a rounded box, so we remove it.
173
- if strings.Contains(msgLines[lastUserInputLineIdx+1], "╯") && strings.Contains(msgLines[lastUserInputLineIdx+1], "╰") {
+ if lastUserInputLineIdx+1 < len(msgLines) && strings.Contains(msgLines[lastUserInputLineIdx+1], "╯") && strings.Contains(msgLines[lastUserInputLineIdx+1], "╰") {
174
lastUserInputLineIdx += 1
175
}
176
0 commit comments