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

Function extendSelections

static/mergely/lib/codemirror.js:2141–2146  ·  view source on GitHub ↗
(doc, heads, options)

Source from the content-addressed store, hash-verified

2139 // Extend all selections (pos is an array of selections with length
2140 // equal the number of selections)
2141 function extendSelections(doc, heads, options) {
2142 for (var out = [], i = 0; i < doc.sel.ranges.length; i++)
2143 out[i] = extendRange(doc, doc.sel.ranges[i], heads[i], null);
2144 var newSel = normalizeSelection(out, doc.sel.primIndex);
2145 setSelection(doc, newSel, options);
2146 }
2147
2148 // Updates a single range in the selection.
2149 function replaceOneSelection(doc, i, range, options) {

Callers 1

codemirror.jsFile · 0.70

Calls 3

extendRangeFunction · 0.70
normalizeSelectionFunction · 0.70
setSelectionFunction · 0.70

Tested by

no test coverage detected