mirror of
https://github.com/usestrix/strix.git
synced 2026-08-28 05:25:00 +00:00
fix: Skip clipboard copy for whitespace-only selections
This commit is contained in:
parent
e0b750dbcd
commit
40cb705494
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