MCPcopy Index your code
hub / github.com/witheve/Eve / makeChangeInner

Function makeChangeInner

src/codemirror.js:4403–4418  ·  view source on GitHub ↗
(doc, change)

Source from the content-addressed store, hash-verified

4401 }
4402
4403 function makeChangeInner(doc, change) {
4404 if (change.text.length == 1 && change.text[0] == "" && cmp(change.from, change.to) == 0) return;
4405 var selAfter = computeSelAfterChange(doc, change);
4406 addChangeToHistory(doc, change, selAfter, doc.cm ? doc.cm.curOp.id : NaN);
4407
4408 makeChangeSingleDoc(doc, change, selAfter, stretchSpansOverChange(doc, change));
4409 var rebased = [];
4410
4411 linkedDocs(doc, function(doc, sharedHist) {
4412 if (!sharedHist && indexOf(rebased, doc.history) == -1) {
4413 rebaseHist(doc.history, change);
4414 rebased.push(doc.history);
4415 }
4416 makeChangeSingleDoc(doc, change, null, stretchSpansOverChange(doc, change));
4417 });
4418 }
4419
4420 // Revert a change stored in a document's history.
4421 function makeChangeFromHistory(doc, type, allowSelectionOnly) {

Callers 1

makeChangeFunction · 0.85

Calls 7

computeSelAfterChangeFunction · 0.85
addChangeToHistoryFunction · 0.85
makeChangeSingleDocFunction · 0.85
stretchSpansOverChangeFunction · 0.85
linkedDocsFunction · 0.85
indexOfFunction · 0.85
rebaseHistFunction · 0.85

Tested by

no test coverage detected