if (st > _startPoint){ st = st + _startPoint; }else{ var _rightTextLen = 0; for (var m = 0; m < conts.length; m++){ if (conts[m] < _startPoint){ _rightTextLen = _startPoint - conts[m]; st = _startPoint - _rightTextLen; if (_endLine == _startLine){ _endLine++; } }else{ break; } }