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