mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-11-21 04:46:29 +03:00
If a view doesn't wrap, a search match can be past its right edge, or left of it once the view is scrolled sideways. Going to such a match with /, n or N only scrolls the view vertically, so the match stays out of sight. This matters most for a diff with gui.wrapLinesInDiffView set to false, where a change is often at the end of a long line. Scroll the view sideways if the match isn't on screen. Put the match a third of the way across the view, so that some of the text before it shows too. If the view can show the match without scrolling, go back to the left edge instead. This applies to every view that doesn't wrap, including the side panels. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>