| 454 | } |
| 455 | |
| 456 | void insertLineArray(ulong index) { |
| 457 | if (document.lineCount >= MAX_LINES) return; |
| 458 | if (index < document.lineCount) { |
| 459 | memmove(&document.lines[index + 1], &document.lines[index], sizeof(Line) * (document.lineCount - index)); |
| 460 | } |
| 461 | initLine(document.lines[index]); |
| 462 | document.lineCount++; |
| 463 | } |
| 464 | |
| 465 | void deleteLineArray(ulong index) { |
| 466 | if (index >= document.lineCount) return; |
no test coverage detected