Skip to content

Commit 1172ff2

Browse files
committed
Fix EXC_BAD_ACCESS during inline IM rendering with macligatures
1 parent bc26247 commit 1172ff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MacVim/MMCoreTextView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ - (void)batchDrawData:(NSData *)data
11201120
CGSize ligatureRanges[*length], regularRanges[*length];
11211121

11221122
// get the (ligature)glyphs and advances for the new text
1123-
UniCharCount offset = fetchGlyphsAndAdvances(ligature, glyphs, ligatureRanges, length);
1123+
UniCharCount offset = fetchGlyphsAndAdvances(ligature, glyphs, ligatureRanges, *length);
11241124
// fetch the advances for the base text
11251125
CTFontGetAdvancesForGlyphs(font, kCTFontOrientationDefault, refGlyphs, regularRanges, *length);
11261126

0 commit comments

Comments
 (0)