(diff: string, width: number)
| 674 | } |
| 675 | |
| 676 | function renderDiffResult(diff: string, width: number): string[] { |
| 677 | // The structural parse drops the `---`/`+++` file headers the card already |
| 678 | // names; the copyable ledger keeps them. |
| 679 | return renderIndented(colorDiff(limitText(diff, 12_000)), width, 2); |
| 680 | } |
| 681 | |
| 682 | function byteLength(text: string): number { |
| 683 | return Buffer.byteLength(text, 'utf8'); |
no test coverage detected