Skip to content

fix(tui): skip OSC 8 scan for plain prefixes - #7665

Merged
mitsuhiko merged 1 commit into
earendil-works:mainfrom
xXJSONDeruloXx:fix/7399-osc8-fast-path
Aug 5, 2026
Merged

fix(tui): skip OSC 8 scan for plain prefixes#7665
mitsuhiko merged 1 commit into
earendil-works:mainfrom
xXJSONDeruloXx:fix/7399-osc8-fast-path

Conversation

@xXJSONDeruloXx

Copy link
Copy Markdown
Contributor

Follow-up to #7657.

Skip scanning the retained prefix when it cannot contain an OSC 8 sequence. This avoids per-character ANSI parsing for ordinary truncated text while preserving the existing hyperlink behavior.

Tests:

  • node --test packages/tui/test/truncate-to-width.test.ts (16/16)
  • npm run check (pre-existing repository-wide type errors)
  • ./test.sh (pre-existing repository/environment failures)

@mitsuhiko
mitsuhiko merged commit 229afb8 into earendil-works:main Aug 5, 2026
2 checks passed
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