(cm, from, to)
| 2071 | |
| 2072 | // Create a range of LineView objects for the given lines. |
| 2073 | function buildViewArray(cm, from, to) { |
| 2074 | var array = [], nextPos; |
| 2075 | for (var pos = from; pos < to; pos = nextPos) { |
| 2076 | var view = new LineView(cm.doc, getLine(cm.doc, pos), pos); |
| 2077 | nextPos = pos + view.size; |
| 2078 | array.push(view); |
| 2079 | } |
| 2080 | return array |
| 2081 | } |
| 2082 | |
| 2083 | var operationGroup = null; |
| 2084 |
no test coverage detected