on main help sign in
fix(list): include inbetween empty lines when selecting text
3671bd0Ayman Bagabas
internal/tui/exp/list/list.go+5
@@ -389,6 +389,11 @@ func (l *list[T]) selectionView(view string, textOnly bool) string {
389
389
390 textBounds := lineTextBounds[y]
390 textBounds := lineTextBounds[y]
391 if textBounds.start < 0 {
391 if textBounds.start < 0 {
392+ if textOnly {
393+ // We don't want to get rid of all empty lines in text-only mode
394+ selectedText.WriteByte('\n')
395+ }
396+
392 continue // No text on this line
397 continue // No text on this line
393 }
398 }
394
399