mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix: dont paste collapse if in bash mode (#2482)
This commit is contained in:
parent
7df32eac2a
commit
4d481dea7e
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue