File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 37
37
<string >992275C1-432A-4CF7-B659-D84ED6D42D3F </string >
38
38
<string >E969541F-E6F9-4D25-8158-72DC3545A6C6 </string >
39
39
<string >8DC44374-2B35-4C57-A6FE-2AD66A36AAD9 </string >
40
+ <string >7FDF5C7A-131F-4ABB-9EDC-8C5F8F0B8A90 </string >
40
41
<string >AABB7188-E14E-4433-AD3B-5CD791EAD9A3 </string >
41
42
</array >
42
43
<key >LSMinimumSystemVersion </key >
Original file line number Diff line number Diff line change @@ -324,6 +324,12 @@ - (NSDictionary *)layoutManager:(NSLayoutManager *)layoutManager
324
324
325
325
SCXcodeMinimapTheme *theme = ([layoutManager isEqualTo: self .textView.layoutManager] ? self.minimapTheme : self.editorTheme );
326
326
327
+ // Delay invalidation for performance reasons and attempt a full range invalidation later
328
+ if (!self.shouldAllowFullSyntaxHighlight && [layoutManager isEqual: self .textView.layoutManager]) {
329
+ [self delayedInvalidateMinimap ];
330
+ return @{NSForegroundColorAttributeName : theme.sourcePlainTextColor };
331
+ }
332
+
327
333
if (self.searchResults .count ) {
328
334
329
335
NSRange closestRange = NSMakeRange (self.textView .string .length , 0 );
@@ -345,12 +351,6 @@ - (NSDictionary *)layoutManager:(NSLayoutManager *)layoutManager
345
351
return @{NSForegroundColorAttributeName : theme.searchResultForegroundColor };
346
352
}
347
353
348
- // Delay invalidation for performance reasons and attempt a full range invalidation later
349
- if (!self.shouldAllowFullSyntaxHighlight && [layoutManager isEqual: self .textView.layoutManager]) {
350
- [self delayedInvalidateMinimap ];
351
- return @{NSForegroundColorAttributeName : theme.sourcePlainTextColor };
352
- }
353
-
354
354
if (self.shouldAllowFullSyntaxHighlight ) {
355
355
356
356
for (NSDictionary *highlightSymbolDictionary in self.highlightedSymbols ) {
You can’t perform that action at this time.
0 commit comments