@@ -389,6 +389,11 @@ func (l *list[T]) selectionView(view string, textOnly bool) string {
390 textBounds := lineTextBounds[y]
390 textBounds := lineTextBounds[y]
391 if textBounds.start < 0 {
391 if textBounds.start < 0 {
393+ // We don't want to get rid of all empty lines in text-only mode
394+ selectedText.WriteByte('\n')
392 continue // No text on this line
397 continue // No text on this line