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 3737 <string >992275C1-432A-4CF7-B659-D84ED6D42D3F </string >
3838 <string >E969541F-E6F9-4D25-8158-72DC3545A6C6 </string >
3939 <string >8DC44374-2B35-4C57-A6FE-2AD66A36AAD9 </string >
40+ <string >7FDF5C7A-131F-4ABB-9EDC-8C5F8F0B8A90 </string >
4041 <string >AABB7188-E14E-4433-AD3B-5CD791EAD9A3 </string >
4142 </array >
4243 <key >LSMinimumSystemVersion </key >
Original file line number Diff line number Diff line change @@ -324,6 +324,12 @@ - (NSDictionary *)layoutManager:(NSLayoutManager *)layoutManager
324324
325325 SCXcodeMinimapTheme *theme = ([layoutManager isEqualTo: self .textView.layoutManager] ? self.minimapTheme : self.editorTheme );
326326
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+
327333 if (self.searchResults .count ) {
328334
329335 NSRange closestRange = NSMakeRange (self.textView .string .length , 0 );
@@ -345,12 +351,6 @@ - (NSDictionary *)layoutManager:(NSLayoutManager *)layoutManager
345351 return @{NSForegroundColorAttributeName : theme.searchResultForegroundColor };
346352 }
347353
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-
354354 if (self.shouldAllowFullSyntaxHighlight ) {
355355
356356 for (NSDictionary *highlightSymbolDictionary in self.highlightedSymbols ) {
You can’t perform that action at this time.
0 commit comments