(doc, i, range, options)
| 1079 | |
| 1080 | // Updates a single range in the selection. |
| 1081 | function replaceOneSelection(doc, i, range, options) { |
| 1082 | var ranges = doc.sel.ranges.slice(0); |
| 1083 | ranges[i] = range; |
| 1084 | setSelection(doc, normalizeSelection(ranges, doc.sel.primIndex), options); |
| 1085 | } |
| 1086 | |
| 1087 | // Reset the selection to a single range. |
| 1088 | function setSimpleSelection(doc, anchor, head, options) { |
no test coverage detected