(doc, head, other, options, extend)
| 6886 | |
| 6887 | // Extend the primary selection range, discard the rest. |
| 6888 | function extendSelection(doc, head, other, options, extend) { |
| 6889 | if (extend == null) { |
| 6890 | extend = doc.cm && (doc.cm.display.shift || doc.extend) |
| 6891 | } |
| 6892 | setSelection(doc, new Selection([extendRange(doc.sel.primary(), head, other, extend)], 0), options) |
| 6893 | } |
| 6894 | |
| 6895 | // Extend all selections (pos is an array of selections with length |
| 6896 | // equal the number of selections) |
no test coverage detected