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 ceb167b commit 907c5d9Copy full SHA for 907c5d9
1 file changed
src/MacVim/MMTextViewHelper.m
@@ -777,7 +777,11 @@ - (NSRect)firstRectForCharacterRange:(NSRange)range
777
rect.origin.y += rect.size.height;
778
779
rect.origin = [textView convertPoint:rect.origin toView:nil];
780
+#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7
781
+ rect = [[textView window] convertRectToScreen:rect];
782
+#else
783
rect.origin = [[textView window] convertBaseToScreen:rect.origin];
784
+#endif
785
786
return rect;
787
}
0 commit comments