mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-10-06 14:06:32 -04:00
The lines of a commit's diff that are in the custom patch being built have to be shown as such over whatever a diff renderer made of that diff, whose bytes we can't touch — and mustn't, since everything we know about a row is keyed by where it sits in the content. So the marks are a decoration drawn over the content instead: a column reserved at the left of every line, blank but for the lines that are in, with the content shifted along past it. Nothing about the content changes but the width it has to wrap in. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>