(doc, i, range, options)
| 6906 | |
| 6907 | // Updates a single range in the selection. |
| 6908 | function replaceOneSelection(doc, i, range, options) { |
| 6909 | var ranges = doc.sel.ranges.slice(0) |
| 6910 | ranges[i] = range |
| 6911 | setSelection(doc, normalizeSelection(doc.cm, ranges, doc.sel.primIndex), options) |
| 6912 | } |
| 6913 | |
| 6914 | // Reset the selection to a single range. |
| 6915 | function setSimpleSelection(doc, anchor, head, options) { |
no test coverage detected