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

Function replaceOneSelection

tools/pythonauto/static/codemirrorepl/codemirror.js:1081–1085  ·  view source on GitHub ↗
(doc, i, range, options)

Source from the content-addressed store, hash-verified

1079
1080 // Updates a single range in the selection.
1081 function replaceOneSelection(doc, i, range, options) {
1082 var ranges = doc.sel.ranges.slice(0);
1083 ranges[i] = range;
1084 setSelection(doc, normalizeSelection(ranges, doc.sel.primIndex), options);
1085 }
1086
1087 // Reset the selection to a single range.
1088 function setSimpleSelection(doc, anchor, head, options) {

Callers 2

leftButtonSelectFunction · 0.85
indentLineFunction · 0.85

Calls 3

normalizeSelectionFunction · 0.85
sliceMethod · 0.80
setSelectionFunction · 0.70

Tested by

no test coverage detected