Skip to content

Commit 23688fc

Browse files
committed
Fixed merge
1 parent 4f38f21 commit 23688fc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/MacVim/MMCoreTextView.m

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,6 @@ - (void)batchDrawData:(NSData *)data
10601060

10611061
if (CTFontGetGlyphsForCharacters(fontRef, chars, glyphs, length)) {
10621062
// All chars were mapped to glyphs, so draw all at once and return.
1063-
CGContextSetTextPosition(context, x, y);
10641063
if (emojiEnabled) {
10651064
length = gatherGlyphs(glyphs, length);
10661065
CTFontDrawGlyphs(fontRef, glyphs, positions, length, context);
@@ -1096,7 +1095,6 @@ - (void)batchDrawData:(NSData *)data
10961095
}
10971096

10981097
int count = g-glyphs;
1099-
CGContextSetTextPosition(context, x0, y);
11001098
if (emojiEnabled) {
11011099
if (surrogatePair)
11021100
count = gatherGlyphs(glyphs, count);
@@ -1254,7 +1252,7 @@ - (void)drawString:(const UniChar *)chars length:(UniCharCount)length
12541252

12551253
CGContextSetTextPosition(context, x, y+fontDescent);
12561254
recurseDraw(chars, glyphs, positions, length, context, fontRef, fontCache,
1257-
y+fontDescent, fontCache, (flags & DRAW_WIDE) && emojiEnabled);
1255+
fontCache, (flags & DRAW_WIDE) && emojiEnabled);
12581256

12591257
CFRelease(fontRef);
12601258
CGContextRestoreGState(context);

0 commit comments

Comments
 (0)