(doc, head, other, options, extend)
| 36 | |
| 37 | // Extend the primary selection range, discard the rest. |
| 38 | export function extendSelection(doc, head, other, options, extend) { |
| 39 | if (extend == null) extend = doc.cm && (doc.cm.display.shift || doc.extend) |
| 40 | setSelection(doc, new Selection([extendRange(doc.sel.primary(), head, other, extend)], 0), options) |
| 41 | } |
| 42 | |
| 43 | // Extend all selections (pos is an array of selections with length |
| 44 | // equal the number of selections) |
no test coverage detected