mirror of
https://github.com/usestrix/strix.git
synced 2026-09-05 08:06:08 +00:00
fix: Skip clipboard copy for whitespace-only selections
This commit is contained in:
parent
60ca7aa9df
commit
8748afedaf
1 changed files with 1 additions and 1 deletions
|
|
@ -2032,7 +2032,7 @@ class StrixTUIApp(App): # type: ignore[misc]
|
|||
if self.screen.selections:
|
||||
selected = self.screen.get_selected_text()
|
||||
self.screen.clear_selection()
|
||||
if selected:
|
||||
if selected and selected.strip():
|
||||
cleaned = self._clean_copied_text(selected)
|
||||
self.copy_to_clipboard(cleaned if cleaned.strip() else selected)
|
||||
copied = True
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue