(doc, head, other, options, extend)
| 5048 | |
| 5049 | // Extend the primary selection range, discard the rest. |
| 5050 | function extendSelection(doc, head, other, options, extend) { |
| 5051 | if (extend == null) { extend = doc.cm && (doc.cm.display.shift || doc.extend); } |
| 5052 | setSelection(doc, new Selection([extendRange(doc.sel.primary(), head, other, extend)], 0), options); |
| 5053 | } |
| 5054 | |
| 5055 | // Extend all selections (pos is an array of selections with length |
| 5056 | // equal the number of selections) |
no test coverage detected