MCPcopy Index your code
hub / github.com/DHTMLX/gantt / rebaseHist

Function rebaseHist

samples/common/codehighlight/codemirror.js:5541–5545  ·  view source on GitHub ↗
(hist, change)

Source from the content-addressed store, hash-verified

5539 }
5540
5541 function rebaseHist(hist, change) {
5542 var from = change.from.line, to = change.to.line, diff = change.text.length - (to - from) - 1;
5543 rebaseHistArray(hist.done, from, to, diff);
5544 rebaseHistArray(hist.undone, from, to, diff);
5545 }
5546
5547 // Utility for applying a change to a line by handle or number,
5548 // returning the number and optionally registering the line as

Callers 2

makeChangeInnerFunction · 0.85
loopFunction · 0.85

Calls 1

rebaseHistArrayFunction · 0.85

Tested by

no test coverage detected