| 642 | } |
| 643 | |
| 644 | void addLine(uint32_t num, Commit commit) |
| 645 | { |
| 646 | walk(num); |
| 647 | |
| 648 | /// If the inserted line is over the end of file, we insert empty lines before it. |
| 649 | while (it == lines.end() && current_idx < num) |
| 650 | { |
| 651 | lines.emplace_back(); |
| 652 | ++current_idx; |
| 653 | } |
| 654 | |
| 655 | it = lines.insert(it, commit); |
| 656 | } |
| 657 | |
| 658 | void removeLine(uint32_t num) |
| 659 | { |
no test coverage detected