mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 03:04:21 +01:00
fix: dont paste collapse if in bash mode (#2482)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user