Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0bc3bc9

Browse files
committed
Fixes#61 and general content offset issues.
1 parent0790b25 commit0bc3bc9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎SCXcodeMinimap/SCXcodeMinimapView.m

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,13 @@ - (instancetype)initWithEditor:(IDESourceCodeEditor *)editor
139139

140140
self.textView = [[DVTSourceTextViewalloc]init];
141141

142-
// The editor's layout manager needs to be the last one, otherwise live issues don't work
143142
NSTextStorage *storage = self.editorTextView.textStorage;
144-
[storageremoveLayoutManager:self.editorTextView.layoutManager];
145143
[self.textViewsetTextStorage:storage];
146-
[storageaddLayoutManager:self.editorTextView.layoutManager];
144+
145+
// The editor's layout manager needs to be the last one, otherwise live issues don't work
146+
DVTLayoutManager *layoutManager = self.editorTextView.layoutManager;
147+
[(NSMutableArray *)storage.layoutManagersremoveObject:layoutManager];
148+
[(NSMutableArray *)storage.layoutManagersaddObject:layoutManager];
147149

148150
[self.editorTextView.layoutManager.foldingManagersetDelegate:self];
149151

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp