(doc, i, range, options)
| 5065 | |
| 5066 | // Updates a single range in the selection. |
| 5067 | function replaceOneSelection(doc, i, range, options) { |
| 5068 | var ranges = doc.sel.ranges.slice(0); |
| 5069 | ranges[i] = range; |
| 5070 | setSelection(doc, normalizeSelection(doc.cm, ranges, doc.sel.primIndex), options); |
| 5071 | } |
| 5072 | |
| 5073 | // Reset the selection to a single range. |
| 5074 | function setSimpleSelection(doc, anchor, head, options) { |
no test coverage detected