(ch, right)
| 2649 | lineObj = lineObj || getLine(cm.doc, pos.line); |
| 2650 | if (!preparedMeasure) { preparedMeasure = prepareMeasureForLine(cm, lineObj); } |
| 2651 | function get(ch, right) { |
| 2652 | var m = measureCharPrepared(cm, preparedMeasure, ch, right ? "right" : "left", varHeight); |
| 2653 | if (right) { m.left = m.right; } else { m.right = m.left; } |
| 2654 | return intoCoordSystem(cm, lineObj, m, context) |
| 2655 | } |
| 2656 | var order = getOrder(lineObj, cm.doc.direction), ch = pos.ch, sticky = pos.sticky; |
| 2657 | if (ch >= lineObj.text.length) { |
| 2658 | ch = lineObj.text.length; |
no test coverage detected