Only override AttributeData.isUnderline when urlId is set

This commit is contained in:
Daniel Imms
2022-08-07 10:36:42 -07:00
parent 8191483fbd
commit e87e15e87b
+1 -1
View File
@@ -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.underlineStyle !== UnderlineStyle.NONE) {
if (this.hasExtendedAttrs() && this.extended.urlId) {
return 1;
}
return this.fg & FgFlags.UNDERLINE;