Skip to content

Commit a5e4f90

Browse files
committed
Remove unreachable code in SGR handling 100
The implementation seems to be wrong. This looks like a remnant left over from term.js before bright SGR was implemented.
1 parent 21e4301 commit a5e4f90

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/common/InputHandler.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2713,12 +2713,6 @@ export class InputHandler extends Disposable implements IInputHandler {
27132713
attr.extended = attr.extended.clone();
27142714
attr.extended.underlineColor = -1;
27152715
attr.updateExtended();
2716-
} else if (p === 100) { // FIXME: dead branch, p=100 already handled above!
2717-
// reset fg/bg
2718-
attr.fg &= ~(Attributes.CM_MASK | Attributes.RGB_MASK);
2719-
attr.fg |= DEFAULT_ATTR_DATA.fg & (Attributes.PCOLOR_MASK | Attributes.RGB_MASK);
2720-
attr.bg &= ~(Attributes.CM_MASK | Attributes.RGB_MASK);
2721-
attr.bg |= DEFAULT_ATTR_DATA.bg & (Attributes.PCOLOR_MASK | Attributes.RGB_MASK);
27222716
} else {
27232717
this._logService.debug('Unknown SGR attribute: %d.', p);
27242718
}

0 commit comments

Comments
 (0)