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 d490291 commit 9bafb65Copy full SHA for 9bafb65
SCXcodeMinimap/SCXcodeMinimapView.m
@@ -434,7 +434,8 @@ - (void)handleMouseEvent:(NSEvent *)theEvent
434
{
435
NSPoint point = [self.textView convertPoint:theEvent.locationInWindow fromView:nil];
436
NSUInteger characterIndex = [self.textView characterIndexForInsertionAtPoint:point];
437
- [self.editorTextView scrollRangeToVisible:NSMakeRange(characterIndex, 0) animate:YES];
+ NSRange lineRange = [self.textView.string lineRangeForRange:NSMakeRange(characterIndex, 0)];
438
+ [self.editorTextView scrollRangeToVisible:lineRange animate:YES];
439
}
440
441
#pragma mark - Theme
0 commit comments