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

Function rebaseHist

src/codemirror.js:8135–8139  ·  view source on GitHub ↗
(hist, change)

Source from the content-addressed store, hash-verified

8133 }
8134
8135 function rebaseHist(hist, change) {
8136 var from = change.from.line, to = change.to.line, diff = change.text.length - (to - from) - 1;
8137 rebaseHistArray(hist.done, from, to, diff);
8138 rebaseHistArray(hist.undone, from, to, diff);
8139 }
8140
8141 // EVENT UTILITIES
8142

Callers 2

makeChangeInnerFunction · 0.85
makeChangeFromHistoryFunction · 0.85

Calls 1

rebaseHistArrayFunction · 0.85

Tested by

no test coverage detected