mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-02 22:40:22 +00:00
include newline between messages when copying
This commit is contained in:
parent
90d37c98f8
commit
b8620395cb
1 changed files with 4 additions and 0 deletions
|
|
@ -516,6 +516,10 @@ func (m *messagesComponent) renderView() tea.Cmd {
|
|||
}
|
||||
final = append(final, line)
|
||||
}
|
||||
y := len(final)
|
||||
if selection != nil && y >= selection.startY && y < selection.endY {
|
||||
clipboard = append(clipboard, "")
|
||||
}
|
||||
final = append(final, "")
|
||||
}
|
||||
content := "\n" + strings.Join(final, "\n")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue