mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-10-06 14:06:32 -04:00
A patch built from what is on screen has to show what is in it, over the diff those lines were taken from — which may be a diff renderer's rendering of it, whose bytes are none of ours to touch. So the marks are drawn in a gutter over the content, from the lines the patch holds rather than from where they were drawn last: they are worked out again whenever a pane's content settles, which is what keeps them right across a renderer switch, a change of context size, or a walk through the commits, and whenever the patch itself changes. They come and go with the focus, being what the space key in the focused view would act on, and stay while the focus moves between the diff and the patch previewed beside it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>