Skip to content

Commit 26bf8ec

Browse files
committed
Fixed crashes on editor theme changes.
1 parent 1d1bfd2 commit 26bf8ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SCXcodeMinimap/SCXcodeMinimapView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ - (instancetype)initWithEditor:(IDESourceCodeEditor *)editor
132132
// The editor's layout manager needs to be the last one, otherwise live issues don't work
133133
NSTextStorage *storage = self.editorTextView.textStorage;
134134
[storage removeLayoutManager:self.editorTextView.layoutManager];
135-
[storage addLayoutManager:self.textView.layoutManager];
135+
[self.textView setTextStorage:storage];
136136
[storage addLayoutManager:self.editorTextView.layoutManager];
137137

138138
[self.editorTextView.foldingManager setDelegate:self];

0 commit comments

Comments
 (0)