mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-11-21 04:46:29 +03:00
The main view keeps its horizontal scroll position when a diff is rendered again. If the new rendering is narrower, for example because the only long line in it was just staged, the view can end up scrolled past the end of every line and look empty. If one line still reaches into the view, the view shows only a sliver of it, although the whole diff would fit without scrolling. Once a render has been read to the end, scroll the view back as far as it takes to put the end of the widest line at the right edge. A long diff that is read only in part is checked once the rest of it has been read. Nothing scrolls the main view horizontally yet, so this changes nothing on its own. It prepares for scrolling the focused main view sideways with H and L. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>