fix(list): include inbetween empty lines when selecting text
commit3671bd0f7330fa4c0b0592f27b7bd5166ebc020a
authorAyman Bagabas <ayman.bagabas@gmail.com>
dateTue 5 Aug 2025, 16:36 (1 year ago)
parent3d91fd0
internal/tui/exp/list/list.go+5
@@ -389,6 +389,11 @@ func (l *list[T]) selectionView(view string, textOnly bool) string {
389389
390390 textBounds := lineTextBounds[y]
391391 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+
392397 continue // No text on this line
393398 }
394399