MCPcopy Index your code
hub / github.com/csev/py4e / extendSelections

Function extendSelections

tools/pythonauto/static/codemirrorepl/codemirror.js:1073–1078  ·  view source on GitHub ↗
(doc, heads, options)

Source from the content-addressed store, hash-verified

1071 // Extend all selections (pos is an array of selections with length
1072 // equal the number of selections)
1073 function extendSelections(doc, heads, options) {
1074 for (var out = [], i = 0; i < doc.sel.ranges.length; i++)
1075 out[i] = extendRange(doc, doc.sel.ranges[i], heads[i], null);
1076 var newSel = normalizeSelection(out, doc.sel.primIndex);
1077 setSelection(doc, newSel, options);
1078 }
1079
1080 // Updates a single range in the selection.
1081 function replaceOneSelection(doc, i, range, options) {

Callers 1

codemirror.jsFile · 0.85

Calls 3

extendRangeFunction · 0.85
normalizeSelectionFunction · 0.85
setSelectionFunction · 0.70

Tested by

no test coverage detected