(cm, from, to)
| 2010 | |
| 2011 | // Create a range of LineView objects for the given lines. |
| 2012 | function buildViewArray(cm, from, to) { |
| 2013 | var array = [], nextPos; |
| 2014 | for (var pos = from; pos < to; pos = nextPos) { |
| 2015 | var view = new LineView(cm.doc, getLine(cm.doc, pos), pos); |
| 2016 | nextPos = pos + view.size; |
| 2017 | array.push(view); |
| 2018 | } |
| 2019 | return array |
| 2020 | } |
| 2021 | |
| 2022 | var operationGroup = null; |
| 2023 |
no test coverage detected