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

Function rebaseHist

tools/pythonauto/static/codemirror/codemirror.js:5455–5459  ·  view source on GitHub ↗
(hist, change)

Source from the content-addressed store, hash-verified

5453 }
5454
5455 function rebaseHist(hist, change) {
5456 var from = change.from.line, to = change.to.line, diff = change.text.length - (to - from) - 1;
5457 rebaseHistArray(hist.done, from, to, diff);
5458 rebaseHistArray(hist.undone, from, to, diff);
5459 }
5460
5461 // EVENT OPERATORS
5462

Callers 2

makeChangeNoReadonlyFunction · 0.70
makeChangeFromHistoryFunction · 0.70

Calls 1

rebaseHistArrayFunction · 0.70

Tested by

no test coverage detected