mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-11-14 00:33:35 -04:00
If a search match is in a commit below or above the visible area of the commits panel, going to it with /, n or N doesn't scroll the panel sideways to show it. The panel keeps the horizontal scroll position of the previous match instead. Since this depends on whether the commit was on screen before, it seems to happen only some of the time. The commits panel renders only the lines on screen. So the search knows where in a commit's line its match is only once the line is on screen, and that happens after the search has scrolled the panel to it. Scroll the panel sideways once more after rendering the lines that a search has scrolled to. The same applies to the commits of a branch or tag. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>