mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-10-05 21:46:49 -04:00
Changing the screen mode renders the main view again, and so does anything else that changes its size along with what it shows. With git's own diff, that render laid a commit's diffstat out to the width the view had before. The graph then wrapped onto rows of its own in a view that got narrower, and stopped short in one that got wider. A diff renderer's render is created after the layout pass, since only the layout settles the view's size, and takes its width there. git's own diff took its width straight away instead, when the render was asked for. Create its task after the layout as well. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>