fix(clipboard): remove unnecessary check for selection end in copy_selection_to_clipboard

This commit is contained in:
X-iZhang
2026-04-25 13:04:19 +01:00
parent 558360b558
commit 27fee3256e
-2
View File
@@ -141,8 +141,6 @@ def copy_selection_to_clipboard(app: App) -> None:
if not hasattr(widget, "text_selection") or not widget.text_selection:
continue
selection = widget.text_selection
if selection.end is None:
continue
try:
result = widget.get_selection(selection)
except (AttributeError, TypeError, ValueError, IndexError) as exc: