Web links in long lines are incorrectly highlighted when the link is on the second line or further.

Details
- Browser and browser version: Chrome
- OS version: MacOS 12.3
- xterm.js version: 4.18.0
Steps to reproduce
- Paste
http://google.com multiple times into a terminal until it wraps onto a second line
- Hover over the last instance of the uri.