We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent0790b25 commit0bc3bc9Copy full SHA for 0bc3bc9
SCXcodeMinimap/SCXcodeMinimapView.m
@@ -139,11 +139,13 @@ - (instancetype)initWithEditor:(IDESourceCodeEditor *)editor
139
140
self.textView = [[DVTSourceTextViewalloc]init];
141
142
-// The editor's layout manager needs to be the last one, otherwise live issues don't work
143
NSTextStorage *storage = self.editorTextView.textStorage;
144
-[storageremoveLayoutManager:self.editorTextView.layoutManager];
145
[self.textViewsetTextStorage:storage];
146
-[storageaddLayoutManager:self.editorTextView.layoutManager];
+
+// The editor's layout manager needs to be the last one, otherwise live issues don't work
+DVTLayoutManager *layoutManager = self.editorTextView.layoutManager;
147
+[(NSMutableArray *)storage.layoutManagersremoveObject:layoutManager];
148
+[(NSMutableArray *)storage.layoutManagersaddObject:layoutManager];
149
150
[self.editorTextView.layoutManager.foldingManagersetDelegate:self];
151