mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Ensure extended underline style is cleared on SGR 24
This commit is contained in:
@@ -2500,6 +2500,7 @@ export class InputHandler extends Disposable implements IInputHandler {
|
||||
} else if (p === 24) {
|
||||
// not underlined
|
||||
attr.fg &= ~FgFlags.UNDERLINE;
|
||||
this._processUnderline(UnderlineStyle.NONE, attr);
|
||||
} else if (p === 25) {
|
||||
// not blink
|
||||
attr.fg &= ~FgFlags.BLINK;
|
||||
|
||||
@@ -36,7 +36,7 @@ export class AttributeData implements IAttributeData {
|
||||
public isInverse(): number { return this.fg & FgFlags.INVERSE; }
|
||||
public isBold(): number { return this.fg & FgFlags.BOLD; }
|
||||
public isUnderline(): number {
|
||||
if (this.hasExtendedAttrs() && this.extended.urlId) {
|
||||
if (this.hasExtendedAttrs() && this.extended.underlineStyle !== UnderlineStyle.NONE) {
|
||||
return 1;
|
||||
}
|
||||
return this.fg & FgFlags.UNDERLINE;
|
||||
|
||||
Reference in New Issue
Block a user