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

Function replaceRange

tools/pythonauto/static/codemirror/codemirror.js:2523–2528  ·  view source on GitHub ↗
(doc, code, from, to, origin)

Source from the content-addressed store, hash-verified

2521 }
2522
2523 function replaceRange(doc, code, from, to, origin) {
2524 if (!to) to = from;
2525 if (posLess(to, from)) { var tmp = to; to = from; from = tmp; }
2526 if (typeof code == "string") code = splitLines(code);
2527 makeChange(doc, {from: from, to: to, text: code, origin: origin}, null);
2528 }
2529
2530 // POSITION OBJECT
2531

Callers 3

onDropFunction · 0.70
indentLineFunction · 0.70
codemirror.jsFile · 0.70

Calls 2

posLessFunction · 0.70
makeChangeFunction · 0.70

Tested by

no test coverage detected