Skip to content

Commit 763e458

Browse files
committed
Fixes selected symbol highlighting crashes under Xcode 6.2
1 parent bda58bd commit 763e458

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SCXcodeMinimap/SCXcodeMinimapView.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,10 @@ - (void)updateHighlightedSymbols
495495

496496
if(canHighlightSelectedSymbol) {
497497
DVTLayoutManager *layoutManager = (DVTLayoutManager *)self.editorTextView.layoutManager;
498+
if(![layoutManager respondsToSelector:@selector(autoHighlightTokenRanges)]) {
499+
return;
500+
}
501+
498502
[layoutManager.autoHighlightTokenRanges enumerateObjectsUsingBlock:^(NSValue *rangeValue, NSUInteger idx, BOOL *stop) {
499503
[self.highlightedSymbolDictionaries addObject:@{kAnnotationRangeKey : rangeValue,
500504
kAnnotationTypeKey : @(SCXcodeMinimapAnnotationTypeHighlightToken)}];

0 commit comments

Comments
 (0)