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

#957 Link underline should be the same as FG color #1626

Merged
merged 6 commits into from Aug 24, 2018

Conversation

peacefullatom
Copy link
Contributor

@peacefullatom peacefullatom commented Aug 23, 2018

Fixes #957.

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.

Works great! Performance should also not be an issue as all this is evaluated after the debounce happens. Just one minor nit then let's merge 😃 (I should see if there's a tslint rule for that)

@@ -187,7 +188,7 @@ export class Linkifier extends EventEmitter implements ILinkifier {
let text = this._terminal.buffer.translateBufferLineToString(absoluteRowIndex, false);
let currentIndex = absoluteRowIndex + 1;
while (currentIndex < this._terminal.buffer.lines.length &&
(<any>this._terminal.buffer.lines.get(currentIndex)).isWrapped) {
Copy link
Member

Choose a reason for hiding this comment

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

This was intentionally like this as it makes it easier to see it's a wrapped line, not the first in the while loop.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Need some clarifications here.

If this check will be removed then text variable will contain all lines from visible part of buffer.

This in turn will crash code.

So, I need to know what we trying to achieve by this code change.

Copy link
Member

Choose a reason for hiding this comment

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

I just mean the 2 extra spaces that were removed 😃

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok. I merged latest changes to this branch.

Ready to go! 😃

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.

Awesome, thanks @peacefullatom!

@Tyriar Tyriar added this to the 3.7.0 milestone Aug 24, 2018
@Tyriar Tyriar closed this Aug 24, 2018
@Tyriar Tyriar reopened this Aug 24, 2018
@Tyriar Tyriar merged commit e769e78 into xtermjs:master Aug 24, 2018
@peacefullatom peacefullatom deleted the fix-underline-color branch September 2, 2018 17:06
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.

None yet

2 participants