Link hover/click regions are calculated incorrectly on double-width lines
Windows Terminal version
1.25.622.0
Windows build number
10.0.19045.5371
Other Software
No response
Steps to reproduce
Execute the following command in a WSL bash shell:
echo -e "\e#6This is a \e]8;;http://example.org\e\\link\e]8;;\e\\ test"
Then hover the mouse cursor of the word link.
Expected Behavior
The dotted underline of the link should change to a solid underline, and a tooltip should appear showing the link destination.
Actual Behavior
Nothing happens when you hover over link. You instead need to hover over the word is in order for the link to be detected. It seems that the link region calculation in not taking line attributes into account.
Oof, good catch.
Me, reminding @lhecker about the terrible idea I had to move hit testing into the renderer...
@DHowett Hi! I’d be interested in working on this issue if it’s available. I’d like to investigate the link hit-testing calculation for double-width lines and see if I can propose a fix. Please let me know if this issue is open for community contribution. Thanks!