Skip to content

Commit 3616c83

Browse files
authored
Merge pull request #737 from cwlin/fix_guifontwide_size
Respect the font size setting of guifontwide.
2 parents 592e3c7 + 490169b commit 3616c83

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/MacVim/MMCoreTextView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ - (void)setWideFont:(NSFont *)newFont
328328
[fontWide release];
329329

330330
// Use 'Apple Color Emoji' font for rendering emoji
331-
CGFloat size = [font pointSize];
331+
CGFloat size = [newFont pointSize] > [font pointSize] ? [font pointSize] : [newFont pointSize];
332332
NSFontDescriptor *emojiDesc = [NSFontDescriptor
333333
fontDescriptorWithName:@"Apple Color Emoji" size:size];
334334
NSFontDescriptor *newFontDesc = [newFont fontDescriptor];

0 commit comments

Comments
 (0)