Skip to content
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

account empty cells in stringIndexToBufferIndex #1887

Merged
merged 9 commits into from
Jan 31, 2019

Conversation

jerch
Copy link
Member

@jerch jerch commented Jan 7, 2019

stringIndexToBufferIndex does not account empty cells correctly, which leads to wrong underline offsets in linkifier if the line contains empty cells:

  • before
    grafik

  • after
    grafik

@jerch
Copy link
Member Author

jerch commented Jan 7, 2019

Note this is only partial fix for the linkifier for the start offset, the end offset might still be at the wrong position (needs the endIndex calc from the other linkifier PR #1769).

@jerch jerch added the type/bug Something is misbehaving label Jan 7, 2019
@Tyriar Tyriar added this to the 3.11.0 milestone Jan 26, 2019
src/Buffer.ts Outdated Show resolved Hide resolved
@jerch jerch merged commit 682efc7 into xtermjs:master Jan 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something is misbehaving
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants