(hist, change)
| 321 | } |
| 322 | |
| 323 | function rebaseHist(hist, change) { |
| 324 | let from = change.from.line, to = change.to.line, diff = change.text.length - (to - from) - 1 |
| 325 | rebaseHistArray(hist.done, from, to, diff) |
| 326 | rebaseHistArray(hist.undone, from, to, diff) |
| 327 | } |
| 328 | |
| 329 | // Utility for applying a change to a line by handle or number, |
| 330 | // returning the number and optionally registering the line as |
no test coverage detected