From 1172ff20a30ccfaca87d81609ad01c8283faee44 Mon Sep 17 00:00:00 2001 From: Kazuki Sakamoto Date: Sun, 15 Nov 2015 10:21:58 -0800 Subject: [PATCH] Fix EXC_BAD_ACCESS during inline IM rendering with macligatures --- src/MacVim/MMCoreTextView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);