(cm, from, to)
| 2006 | |
| 2007 | // Create a range of LineView objects for the given lines. |
| 2008 | function buildViewArray(cm, from, to) { |
| 2009 | var array = [], nextPos; |
| 2010 | for (var pos = from; pos < to; pos = nextPos) { |
| 2011 | var view = new LineView(cm.doc, getLine(cm.doc, pos), pos); |
| 2012 | nextPos = pos + view.size; |
| 2013 | array.push(view); |
| 2014 | } |
| 2015 | return array; |
| 2016 | } |
| 2017 | |
| 2018 | // Updates the display.view data structure for a given change to the |
| 2019 | // document. From and to are in pre-change coordinates. Lendiff is |
no test coverage detected