mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-10-06 05:57:38 -04:00
Cycling through the diff renderers is for comparing how they show the same change, which is hard to do from the top of the diff each time. The line you were on is the same line of the same file whichever renderer draws it, so the restore finds it again — by the records a renderer states, where it speaks the protocol, and by parsing its output as a diff otherwise. The restore sits in DiffHelper.RenderToMainAgain. A switch between a dark and a light terminal background renders the diff again through the same helper, so it keeps your place as well. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>