Skip to content

fix(tui): preserve selection after Ctrl+C copy#497

Open
yumengv wants to merge 1 commit into
lsdefine:mainfrom
yumengv:fix/tui-preserve-selection-copy
Open

fix(tui): preserve selection after Ctrl+C copy#497
yumengv wants to merge 1 commit into
lsdefine:mainfrom
yumengv:fix/tui-preserve-selection-copy

Conversation

@yumengv
Copy link
Copy Markdown

@yumengv yumengv commented May 27, 2026

Summary

  • Preserve the visible selection after Ctrl+C copies selected text in TUI v3.
  • Keep the original no-selection behavior unchanged: first Ctrl+C clears the draft and arms quit; second Ctrl+C exits.

Testing

  • python -m py_compile frontends/tui_v3.py
  • Static assertion: selection-copy branch no longer assigns self._sel = None.
  • Static assertion: no-selection quick-clear branch still exists.

Keep selected text highlighted after Ctrl+C copies it. No-selection Ctrl+C still keeps the quick-clear then second-press exit behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant