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

Function rebaseHist

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

Source from the content-addressed store, hash-verified

6768 }
6769
6770 function rebaseHist(hist, change) {
6771 var from = change.from.line, to = change.to.line, diff = change.text.length - (to - from) - 1;
6772 rebaseHistArray(hist.done, from, to, diff);
6773 rebaseHistArray(hist.undone, from, to, diff);
6774 }
6775
6776 // EVENT UTILITIES
6777

Callers 2

makeChangeInnerFunction · 0.70
makeChangeFromHistoryFunction · 0.70

Calls 1

rebaseHistArrayFunction · 0.70

Tested by

no test coverage detected