(doc, heads, options)
| 1071 | // Extend all selections (pos is an array of selections with length |
| 1072 | // equal the number of selections) |
| 1073 | function extendSelections(doc, heads, options) { |
| 1074 | for (var out = [], i = 0; i < doc.sel.ranges.length; i++) |
| 1075 | out[i] = extendRange(doc, doc.sel.ranges[i], heads[i], null); |
| 1076 | var newSel = normalizeSelection(out, doc.sel.primIndex); |
| 1077 | setSelection(doc, newSel, options); |
| 1078 | } |
| 1079 | |
| 1080 | // Updates a single range in the selection. |
| 1081 | function replaceOneSelection(doc, i, range, options) { |
no test coverage detected