mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-07 15:37:14 +02:00
Fix EXC_BAD_ACCESS during inline IM rendering with macligatures
This commit is contained in:
@@ -1120,7 +1120,7 @@ ligatureGlyphsForChars(const unichar *chars, CGGlyph *glyphs, CGPoint *positions
|
||||
CGSize ligatureRanges[*length], regularRanges[*length];
|
||||
|
||||
// get the (ligature)glyphs and advances for the new text
|
||||
UniCharCount offset = fetchGlyphsAndAdvances(ligature, glyphs, ligatureRanges, length);
|
||||
UniCharCount offset = fetchGlyphsAndAdvances(ligature, glyphs, ligatureRanges, *length);
|
||||
// fetch the advances for the base text
|
||||
CTFontGetAdvancesForGlyphs(font, kCTFontOrientationDefault, refGlyphs, regularRanges, *length);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user