From 3671bd0f7330fa4c0b0592f27b7bd5166ebc020a Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Tue, 5 Aug 2025 16:36:05 -0400 Subject: [PATCH] fix(list): include inbetween empty lines when selecting text --- internal/tui/exp/list/list.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/tui/exp/list/list.go b/internal/tui/exp/list/list.go index 8b729565f99d83accdebc0bc077963a7b25f8a34..4a9db7351ef561ec14414e4f70f1973f3d207064 100644 --- a/internal/tui/exp/list/list.go +++ b/internal/tui/exp/list/list.go @@ -389,6 +389,11 @@ func (l *list[T]) selectionView(view string, textOnly bool) string { textBounds := lineTextBounds[y] if textBounds.start < 0 { + if textOnly { + // We don't want to get rid of all empty lines in text-only mode + selectedText.WriteByte('\n') + } + continue // No text on this line }