polish
This commit is contained in:
@@ -2359,17 +2359,12 @@ export class InputHandler extends Disposable implements IInputHandler {
|
|||||||
private _processSGR0(attr: IAttributeData): void {
|
private _processSGR0(attr: IAttributeData): void {
|
||||||
attr.fg = DEFAULT_ATTR_DATA.fg;
|
attr.fg = DEFAULT_ATTR_DATA.fg;
|
||||||
attr.bg = DEFAULT_ATTR_DATA.bg;
|
attr.bg = DEFAULT_ATTR_DATA.bg;
|
||||||
|
attr.extended = attr.extended.clone();
|
||||||
// Reset `extended` except for the `urlId`.
|
// Reset underline style and color. Note that we don't want to reset other
|
||||||
if (!attr.extended.isEmpty()) {
|
// fields such as the url id.
|
||||||
const urlId = attr.extended.urlId;
|
attr.extended.underlineStyle = UnderlineStyle.NONE;
|
||||||
attr.extended = DEFAULT_ATTR_DATA.extended.clone();
|
attr.extended.underlineColor &= ~(Attributes.CM_MASK | Attributes.RGB_MASK);
|
||||||
|
attr.updateExtended();
|
||||||
if (urlId) {
|
|
||||||
attr.extended.urlId = urlId;
|
|
||||||
attr.updateExtended();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user