Skip to content

Commit 9dda8c0

Browse files
committed
Fix setting guifontwide to redraw texts and clear the cache
Previously setting `guifontwide` doesn't do anything for drawn text, and you have to set a new `guifont` in order for it to clear.
1 parent 10a5c8b commit 9dda8c0

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)