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

Prevent Uncaught TypeError - Cannot read property 'isWrapped' on Linkifier #1570

Merged
merged 3 commits into from
Jul 17, 2018

Conversation

bmf-ribeiro
Copy link
Contributor

Fixes #1509

 - Cannot read property 'isWrapped' on Linkifier
src/Linkifier.ts Outdated
@@ -169,10 +169,18 @@ export class Linkifier extends EventEmitter implements ILinkifier {
return;
}
// If the first row is wrapped, backtrack to find the origin row and linkify that
let line = (<any>this._terminal.buffer.lines.get(absoluteRowIndex));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the get call is needed here, just the definition of line?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you're right... fixed 😄

@Tyriar Tyriar added this to the 3.6.0 milestone Jul 16, 2018
Copy link
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @nikonso!

@Tyriar Tyriar merged commit 5b8da8c into xtermjs:master Jul 17, 2018
@bmf-ribeiro bmf-ribeiro deleted the fix-1509 branch July 17, 2018 19:31
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.

2 participants