Files
lazygit/pkg/gui
Stefan HallerandClaude Opus 5.5 92525a2347 Scroll the commits panel sideways to a search match that was off screen
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>
2026-11-07 20:14:38 +01:00
..
…
…
…