Skip to content

terminal: fix word selection across wide characters - #14391

Merged
mitchellh merged 1 commit into
ghostty-org:mainfrom
fornwall:select-word-spacer
Sep 25, 2026
Merged

mitchellh merged 1 commit into
ghostty-org:mainfrom
fornwall:select-word-spacer

Conversation

@fornwall

Copy link
Copy Markdown
Contributor

Double-clicking 日本語 selects one character or nothing, depending on which half of a character is clicked. Resolve wide-character spacers to their character so either half selects the whole word, including across soft wraps.

AI disclaimer: Created with codex and gpt-6 astra. Iterated on, reviewed and manually tested by me.

Double-clicking a wide character selects one character or nothing,
depending on which half is clicked. Resolve wide-character spacers to
their character so either half selects the whole word, including
across soft wraps.

Signed-off-by: Fredrik Fornwall <fredrik@fornwall.net>
@fornwall
fornwall requested a review from a team as a code owner September 25, 2026 06:37
@ghostty-bot ghostty-bot Bot added the vt Control sequence related label Sep 25, 2026
@mitchellh
mitchellh merged commit 69bf1ac into ghostty-org:main Sep 25, 2026
17 checks passed
@github-actions github-actions Bot added this to the 1.4.0 milestone Sep 25, 2026
@fornwall
fornwall deleted the select-word-spacer branch September 26, 2026 06:15
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