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
Conversation
There was a problem hiding this 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) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 😃
There was a problem hiding this comment.
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! 😃
…-underline-color
…m/xterm.js into fix-underline-color
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks @peacefullatom!
Fixes #957.