diff --git a/src/MacVim/MMCoreTextView.m b/src/MacVim/MMCoreTextView.m index 857cfa6aa6..b8acdccabb 100644 --- a/src/MacVim/MMCoreTextView.m +++ b/src/MacVim/MMCoreTextView.m @@ -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);