We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e137f6 commit 16f9ff0Copy full SHA for 16f9ff0
SCXcodeMinimap/SCXcodeMinimap.m
@@ -94,10 +94,14 @@ - (void)showMiniMap:(NSMenuItem *)sender
94
95
- (void)onDocumentDidChange:(NSNotification*)sender
96
{
97
+ if ([[[sender object] class] isSubclassOfClass:[NSDocument class]])
98
+ {
99
SCMiniMapView *miniMapView = objc_getAssociatedObject([sender object], &kKeyMiniMapView);
100
[miniMapView updateTextView];
101
}
102
103
+}
104
+
105
- (void)onCodeEditorBoundsChange:(NSNotification*)sender
106
107
if(![sender.object respondsToSelector:@selector(scrollView)]) {
0 commit comments