Skip to content

Fix hang wrapping OSC-8 hyperlinks with wide graphemes#231

Closed
santhreal wants to merge 2 commits into
jquast:masterfrom
santhreal:fix/wrap-hyperlink-wide-hang
Closed

Fix hang wrapping OSC-8 hyperlinks with wide graphemes#231
santhreal wants to merge 2 commits into
jquast:masterfrom
santhreal:fix/wrap-hyperlink-wide-hang

Conversation

@santhreal

@santhreal santhreal commented Jul 18, 2026

Copy link
Copy Markdown

wcwidth.wrap hits Hang when OSC8 open + wide/emoji grapheme at wrap width 1. This PR fixes the regression with a focused test covering the case.

When wrap width is 1 and an open hyperlink precedes a wide/emoji
grapheme, the wrap loop never advanced. Advance past the grapheme.
_find_first_visible_break fully supersedes the old force-progress path.
@codspeed-hq

codspeed-hq Bot commented Jul 22, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 108 untouched benchmarks


Comparing santhreal:fix/wrap-hyperlink-wide-hang (37b4b2b) with master (5a71d7d)

Open in CodSpeed

@jquast

jquast commented Jul 22, 2026

Copy link
Copy Markdown
Owner

superseded by #232

@jquast jquast closed this Jul 22, 2026
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.

2 participants