mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-10-06 05:57:38 -04:00
Wherever two diff lines end up on one rendered line, a renderer emits their records back to back: the deletion and the addition of a modification collapsed into a single column, or a banner announcing a file and its first hunk at once. A changed line that is empty is rendered as its record alone. Attaching a record only to the cells it precedes loses all of these — the last record of a run wins, and an empty changed line becomes a line we can say nothing about at all. Give such a record a cell of its own instead. It renders nothing, so the diff looks the same, but the line keeps every record it was given. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>