Skip to content

Commit

Permalink
Added Xcode 6.4 compatibility UUID.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanceriu committed Jul 2, 2015
1 parent 08d3916 commit a9f59f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions SCXcodeMinimap/SCXcodeMinimap-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<string>992275C1-432A-4CF7-B659-D84ED6D42D3F</string>
<string>E969541F-E6F9-4D25-8158-72DC3545A6C6</string>
<string>8DC44374-2B35-4C57-A6FE-2AD66A36AAD9</string>
<string>7FDF5C7A-131F-4ABB-9EDC-8C5F8F0B8A90</string>
<string>AABB7188-E14E-4433-AD3B-5CD791EAD9A3</string>
</array>
<key>LSMinimumSystemVersion</key>
Expand Down
12 changes: 6 additions & 6 deletions SCXcodeMinimap/SCXcodeMinimapView.m
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,12 @@ - (NSDictionary *)layoutManager:(NSLayoutManager *)layoutManager

SCXcodeMinimapTheme *theme = ([layoutManager isEqualTo:self.textView.layoutManager] ? self.minimapTheme : self.editorTheme);

// Delay invalidation for performance reasons and attempt a full range invalidation later
if(!self.shouldAllowFullSyntaxHighlight && [layoutManager isEqual:self.textView.layoutManager]) {
[self delayedInvalidateMinimap];
return @{NSForegroundColorAttributeName : theme.sourcePlainTextColor};
}

if(self.searchResults.count) {

NSRange closestRange = NSMakeRange(self.textView.string.length, 0);
Expand All @@ -345,12 +351,6 @@ - (NSDictionary *)layoutManager:(NSLayoutManager *)layoutManager
return @{NSForegroundColorAttributeName : theme.searchResultForegroundColor};
}

// Delay invalidation for performance reasons and attempt a full range invalidation later
if(!self.shouldAllowFullSyntaxHighlight && [layoutManager isEqual:self.textView.layoutManager]) {
[self delayedInvalidateMinimap];
return @{NSForegroundColorAttributeName : theme.sourcePlainTextColor};
}

if(self.shouldAllowFullSyntaxHighlight) {

for(NSDictionary *highlightSymbolDictionary in self.highlightedSymbols) {
Expand Down

0 comments on commit a9f59f4

Please sign in to comment.