mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-11-21 04:46:29 +03:00
Two places that position the main view after a re-render of the same diff call SetOrigin(0, y), although they only mean to move the view vertically. One is the restore after a change of the context size, of whitespace handling or of the diff renderer. The other is the clamp for content that ends above the scroll position, for example after staging a large part of the diff. Use SetOriginY in both, so that they keep the horizontal scroll position. 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>