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 782cecb commit 710728bCopy full SHA for 710728b
SCXcodeMinimap/SCXcodeMinimapView.m
@@ -420,7 +420,13 @@ - (NSDictionary *)layoutManager:(NSLayoutManager *)layoutManager
420
}
421
422
423
- NSColor *foregroundColor = [[((DVTFontAndColorTheme *)theme.dvtTheme) syntaxColorsByNodeType] pointerAtIndex:nodeType];
+ DVTPointerArray *colors = [((DVTFontAndColorTheme *)theme.dvtTheme) syntaxColorsByNodeType];
424
+
425
+ NSColor *foregroundColor = nil;
426
+ if(nodeType < colors.count) {
427
+ foregroundColor = [colors pointerAtIndex:nodeType];
428
+ }
429
430
if(foregroundColor == nil) {
431
foregroundColor = theme.sourcePlainTextColor;
432
0 commit comments