Skip to content

Commit 907c5d9

Browse files
committed
Fix warning concerning convertBaseToScreen.
1 parent ceb167b commit 907c5d9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/MacVim/MMTextViewHelper.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,11 @@ - (NSRect)firstRectForCharacterRange:(NSRange)range
777777
rect.origin.y += rect.size.height;
778778

779779
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
780783
rect.origin = [[textView window] convertBaseToScreen:rect.origin];
784+
#endif
781785

782786
return rect;
783787
}

0 commit comments

Comments
 (0)