New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Links get wrong position when they are after wide chars with canvas/webgl renderer #4294
Comments
The weblink addon is broken in several ways, which is basically the reason for #4288. Maybe check if the issue remains with that PR? |
Hi Jerch, your PR works great! It not only fixes this issue, but also 1) works for special shortlink such as Can I expect this to be merged soon? |
Well it still needs some more test cases, I kinda turned the whole regexp upside-down to also match unicode chars in paths (nowadays supported by all browsers), but this makes match exclusions a bit more cumbersome.
Had to fix the DOM renderer offset calc (was totally off with correct cell positions), seems there is still a one off issue at the end of underline. |
See the image below. Note that it only happens to the links detected by the weblinks addon but not OSC 8 links. It also only happens to webgl and canvas renderers but the dom one.
I looked at the code a bit. It seems that the web link addon uses the character position (i.e. "哈" is counted 1 even though it is a wide character) as the the value for
IBufferCellPosition.x
. Code here. Is this the correct way?BTW, I am not sure whether this is just #2887.
Details
The text was updated successfully, but these errors were encountered: