Skip to content

Commit b2133d9

Browse files
authored
Merge pull request #5659 from Tyriar/dead_code2
Remove unreachable code in SGR handling 100
2 parents e96748c + a5e4f90 commit b2133d9

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
@@ -2724,12 +2724,6 @@ export class InputHandler extends Disposable implements IInputHandler {
27242724
attr.extended = attr.extended.clone();
27252725
attr.extended.underlineColor = -1;
27262726
attr.updateExtended();
2727-
} else if (p === 100) { // FIXME: dead branch, p=100 already handled above!
2728-
// reset fg/bg
2729-
attr.fg &= ~(Attributes.CM_MASK | Attributes.RGB_MASK);
2730-
attr.fg |= DEFAULT_ATTR_DATA.fg & (Attributes.PCOLOR_MASK | Attributes.RGB_MASK);
2731-
attr.bg &= ~(Attributes.CM_MASK | Attributes.RGB_MASK);
2732-
attr.bg |= DEFAULT_ATTR_DATA.bg & (Attributes.PCOLOR_MASK | Attributes.RGB_MASK);
27332727
} else {
27342728
this._logService.debug('Unknown SGR attribute: %d.', p);
27352729
}

0 commit comments

Comments
 (0)