Skip to content

fix(addon-web-links): preserve wrapped URL detection after reflow#5768

Closed
SergioChan wants to merge 2 commits intoxtermjs:masterfrom
SergioChan:fix-weblinks-reflow-5412
Closed

fix(addon-web-links): preserve wrapped URL detection after reflow#5768
SergioChan wants to merge 2 commits intoxtermjs:masterfrom
SergioChan:fix-weblinks-reflow-5412

Conversation

@SergioChan
Copy link
Copy Markdown
Contributor

Summary

  • Handle wrapped-link reflow in WebLinkProvider by re-scanning wrapped continuation rows and rebuilding contiguous link text before range matching.
  • Keep detection bounded to the current viewport buffer slice so wrapped links remain detectable without broad parsing changes.
  • Add a regression test that reproduces a wrapped OAuth-style URL split across rows and verifies the full link is recognized.

Testing

  • npx eslint addons/addon-web-links/src/WebLinkProvider.ts addons/addon-web-links/test/WebLinksAddon.test.ts
  • npm run build (fails in this environment because @typescript/native-preview-win32-x64 is missing from the local toolchain setup)

Related

Fixes #5412

@jerch
Copy link
Copy Markdown
Member

jerch commented Mar 11, 2026

really? duplicate of #5767

@jerch jerch closed this Mar 11, 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.

xterm WebLinkAddon does not detect links with new line (broken from xterm fit)

2 participants