fix: dont paste collapse if in bash mode (#2482)

This commit is contained in:
Aiden Cline 2025-09-07 20:24:49 -05:00 committed by GitHub
parent 7df32eac2a
commit 4d481dea7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -659,6 +659,9 @@ func (m *editorComponent) getExitKeyText() string {
// shouldSummarizePastedText determines if pasted text should be summarized
func (m *editorComponent) shouldSummarizePastedText(text string) bool {
if m.app.IsBashMode {
return false
}
lines := strings.Split(text, "\n")
lineCount := len(lines)
charCount := len(text)