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