(hist, change)
| 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 |
no test coverage detected