MCPcopy
hub / github.com/witheve/Eve / extendSelections

Function extendSelections

src/codemirror.js:2146–2151  ·  view source on GitHub ↗
(doc, heads, options)

Source from the content-addressed store, hash-verified

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

Callers 1

codemirror.jsFile · 0.85

Calls 3

extendRangeFunction · 0.85
normalizeSelectionFunction · 0.85
setSelectionFunction · 0.85

Tested by

no test coverage detected