(doc, i, range, options)
| 2147 | |
| 2148 | // Updates a single range in the selection. |
| 2149 | function replaceOneSelection(doc, i, range, options) { |
| 2150 | var ranges = doc.sel.ranges.slice(0); |
| 2151 | ranges[i] = range; |
| 2152 | setSelection(doc, normalizeSelection(ranges, doc.sel.primIndex), options); |
| 2153 | } |
| 2154 | |
| 2155 | // Reset the selection to a single range. |
| 2156 | function setSimpleSelection(doc, anchor, head, options) { |
no test coverage detected