Skip to content

terminal: match wide char selection rendering to copying - #14651

Merged
mitchellh merged 1 commit into
ghostty-org:mainfrom
fornwall:selection-rendering-spacer
Oct 12, 2026
Merged

mitchellh merged 1 commit into
ghostty-org:mainfrom
fornwall:selection-rendering-spacer

Conversation

@fornwall

Copy link
Copy Markdown
Contributor

Fix two cases where a wide char was not rendered as selected when it should (that is, it was included when copying):

  1. Selecting leftward onto the spacer tail of a wide char.
  2. Selecting rightward onto the spacer head of a wrapped wide char.

Before:
before

After:
after

AI disclosure: Created using opus 5.5 through claude code. Reviewed, modified and tested by me.

Fix two cases where a wide char was not rendered as selected when it
should (that is, it was included when copying):

1. Selecting leftward onto the spacer tail of a wide char.
2. Selecting rightward onto the spacer head of a wrapped wide char.

Signed-off-by: Fredrik Fornwall <fredrik@fornwall.net>
@fornwall
fornwall requested a review from a team as a code owner October 11, 2026 22:14
@ghostty-bot ghostty-bot Bot added the vt Control sequence related label Oct 11, 2026
@mitchellh
mitchellh merged commit d3d4c15 into ghostty-org:main Oct 12, 2026
@github-actions github-actions Bot added this to the 1.4.0 milestone Oct 12, 2026
@fornwall
fornwall deleted the selection-rendering-spacer branch October 12, 2026 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

vt Control sequence related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants