MCPcopy Create free account
hub / github.com/TruthHun/BookStack / extendSelection

Function extendSelection

static/editor.md/lib/codemirror/lib/codemirror.js:2039–2041  ·  view source on GitHub ↗
(doc, head, other, options)

Source from the content-addressed store, hash-verified

2037
2038 // Extend the primary selection range, discard the rest.
2039 function extendSelection(doc, head, other, options) {
2040 setSelection(doc, new Selection([extendRange(doc, doc.sel.primary(), head, other)], 0), options);
2041 }
2042
2043 // Extend all selections (pos is an array of selections with length
2044 // equal the number of selections)

Callers 4

registerEventHandlersFunction · 0.70
onMouseDownFunction · 0.70
leftButtonStartDragFunction · 0.70
codemirror.jsFile · 0.70

Calls 2

setSelectionFunction · 0.70
extendRangeFunction · 0.70

Tested by

no test coverage detected