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)
|
final = append(final, line)
|
||||||
}
|
}
|
||||||
|
y := len(final)
|
||||||
|
if selection != nil && y >= selection.startY && y < selection.endY {
|
||||||
|
clipboard = append(clipboard, "")
|
||||||
|
}
|
||||||
final = append(final, "")
|
final = append(final, "")
|
||||||
}
|
}
|
||||||
content := "\n" + strings.Join(final, "\n")
|
content := "\n" + strings.Join(final, "\n")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue