| 651 | } |
| 652 | |
| 653 | void addLine(uint32_t num, Commit commit) |
| 654 | { |
| 655 | walk(num); |
| 656 | |
| 657 | /// If the inserted line is over the end of file, we insert empty lines before it. |
| 658 | while (it == lines.end() && current_idx < num) |
| 659 | { |
| 660 | lines.emplace_back(); |
| 661 | ++current_idx; |
| 662 | } |
| 663 | |
| 664 | it = lines.insert(it, commit); |
| 665 | } |
| 666 | |
| 667 | void removeLine(uint32_t num) |
| 668 | { |
no test coverage detected