MCPcopy Create free account
hub / github.com/TruthHun/BookStack / rebaseHist

Function rebaseHist

static/editor.md/lib/codemirror/lib/codemirror.js:7872–7876  ·  view source on GitHub ↗
(hist, change)

Source from the content-addressed store, hash-verified

7870 }
7871
7872 function rebaseHist(hist, change) {
7873 var from = change.from.line, to = change.to.line, diff = change.text.length - (to - from) - 1;
7874 rebaseHistArray(hist.done, from, to, diff);
7875 rebaseHistArray(hist.undone, from, to, diff);
7876 }
7877
7878 // EVENT UTILITIES
7879

Callers 2

makeChangeInnerFunction · 0.70
makeChangeFromHistoryFunction · 0.70

Calls 1

rebaseHistArrayFunction · 0.70

Tested by

no test coverage detected