diff --git a/AppKit/CPTextView/CPLayoutManager.j b/AppKit/CPTextView/CPLayoutManager.j index 3385c6a55..99d403be3 100644 --- a/AppKit/CPTextView/CPLayoutManager.j +++ b/AppKit/CPTextView/CPLayoutManager.j @@ -1158,6 +1158,9 @@ var _objectsInRange = function(aList, aRange) run = {_range:CPMakeRangeCopy(effectiveRange), color:color, font:font, elem:nil, string:string}; _runs.push(run); + + if (!CPMaxRange(effectiveRange)) + break; } }