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