mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
Ensure starting glyph is valid at layout (fixes :set lines=9999 crash)
git-svn-id: http://macvim.googlecode.com/svn/trunk@321 96c4425d-ca35-0410-94e5-3396d5c13a8f
This commit is contained in:
+2
-1
@@ -56,7 +56,8 @@
|
||||
// is centered within a line.
|
||||
float baseline = [font descender] - floor(.5*[ts linespace]);
|
||||
|
||||
if (!(ts && tv && tc && font && text && textLen))
|
||||
if (!(lm && ts && tv && tc && font && text && textLen
|
||||
&& [lm isValidGlyphIndex:startGlyphIdx]))
|
||||
return;
|
||||
|
||||
float baselineOffset = [[NSUserDefaults standardUserDefaults]
|
||||
|
||||
Reference in New Issue
Block a user