File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -621,6 +621,10 @@ - (void)updateSearchResults
621
621
622
622
- (void )updateOffset
623
623
{
624
+ if (self.editorTextView .textStorage .editedMask ) {
625
+ return ;
626
+ }
627
+
624
628
[self .editorTextView.layoutManager ensureLayoutForTextContainer: self .editorTextView.textContainer];
625
629
626
630
CGFloat editorTextHeight = CGRectGetHeight ([self .editorTextView.layoutManager usedRectForTextContainer: self .editorTextView.textContainer]);
@@ -633,7 +637,7 @@ - (void)updateOffset
633
637
[self .selectionView setFrame: selectionViewFrame];
634
638
return ;
635
639
}
636
-
640
+
637
641
CGFloat editorYOffset = CGRectGetMinY (self.editor .scrollView .contentView .bounds ) + ABS (CGRectGetMinY (self.editorTextView .frame ));
638
642
639
643
CGFloat ratio = (adjustedMinimapContentHeight / adjustedEditorContentHeight) * (1 / self.scrollView .magnification );
You can’t perform that action at this time.
0 commit comments