mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-10-05 21:46:49 -04:00
The restore scan polls the off-screen render after each line read to find its target. OffscreenDiffLineContents rebuilds a snapshot of every loaded row each call, so polling per line is O(n2) on a large diff. Add OffscreenDiffLineContentsFrom, which returns only the rows from a given index onward, so a scan that remembers how far it has read can process just the new lines. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>