We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9349b3 commit 3f53a6fCopy full SHA for 3f53a6f
PTYTextView.m
@@ -758,12 +758,18 @@ - (NSColor*)_colorForCode:(int)theIndex
758
case ALTSEM_BG_DEFAULT:
759
color = defaultBGColor;
760
break;
761
- default:
+ case ALTSEM_FG_DEFAULT:
762
if (isBold && useBrightBold) {
763
color = [self defaultBoldColor];
764
} else {
765
color = defaultFGColor;
766
}
767
+ break;
768
+ default:
769
+ // This should never happen, but if it does we should
770
+ // get some bug reports by returning red.
771
+ NSLog(@"Unexpected alternate-semantics color %d", theIndex);
772
+ return [NSColor colorWithCalibratedRed:1 green:0 blue:0 alpha:1];
773
774
775
case ColorMode24bit:
0 commit comments