Skip to content

Commit 153b3e1

Browse files
committed
chore: code improvements
1 parent e1f136d commit 153b3e1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/msgfmt/msgfmt.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,15 +187,12 @@ func RemoveUserInput(msgRaw string, userInputRaw string, agentType AgentType) st
187187
// that doesn't contain the echoed user input.
188188
lastUserInputLineIdx := msgRuneLineLocations[userInputEndIdx]
189189

190-
// Skip Gemini trailing input box line
190+
// Skip Gemini/Cursor trailing input box line
191191
if agentType == AgentTypeGemini {
192192
if idx, found := skipTrailingInputBoxLine(msgLines, lastUserInputLineIdx, "╯", "╰"); found {
193193
lastUserInputLineIdx = idx
194194
}
195-
}
196-
197-
// Skip Cursor trailing input box line
198-
if agentType == AgentTypeCursor {
195+
} else if agentType == AgentTypeCursor {
199196
if idx, found := skipTrailingInputBoxLine(msgLines, lastUserInputLineIdx, "┘", "└"); found {
200197
lastUserInputLineIdx = idx
201198
}

0 commit comments

Comments
 (0)