diff --git a/src/MacVim/MMCoreTextView.m b/src/MacVim/MMCoreTextView.m index bf0245701e..8d73a5044c 100644 --- a/src/MacVim/MMCoreTextView.m +++ b/src/MacVim/MMCoreTextView.m @@ -1076,7 +1076,8 @@ ligatureGlyphsForChars(const unichar *chars, CGGlyph *glyphs, CGPoint *positions } } // fixup relative positioning - for( CFIndex i = 0; i < offset; ++i ) { + CFIndex i; + for( i = 0; i < offset; ++i ) { positions[i].x += refPos.x; positions[i].y += refPos.y; }