Skip to content

Commit 6d737d1

Browse files
authored
Merge pull request #1134 from ychin/fix-guifontwide-should-redraw
Fix setting `guifontwide` to redraw texts and clear the cache
2 parents 10a5c8b + 9dda8c0 commit 6d737d1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/MacVim/MMCoreTextView.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,12 @@ - (void)setWideFont:(NSFont *)newFont
409409
[fontWide release];
410410
fontWide = [newFont retain];
411411
}
412+
413+
[self clearAll];
414+
[fontVariants removeAllObjects];
415+
[characterStrings removeAllObjects];
416+
[characterLines removeAllObjects];
417+
412418
}
413419

414420
- (NSFont *)font

0 commit comments

Comments
 (0)