MCPcopy Create free account
hub / github.com/breck7/scroll / rebaseHist

Function rebaseHist

external/.scrollLibs.js:7473–7479  ·  view source on GitHub ↗
(hist, change)

Source from the content-addressed store, hash-verified

7471 }
7472
7473 function rebaseHist(hist, change) {
7474 var from = change.from.line,
7475 to = change.to.line,
7476 diff = change.text.length - (to - from) - 1
7477 rebaseHistArray(hist.done, from, to, diff)
7478 rebaseHistArray(hist.undone, from, to, diff)
7479 }
7480
7481 // Utility for applying a change to a line by handle or number,
7482 // 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