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