mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-10-05 21:46:49 -04:00
File navigation works out where the neighbouring file begins by walking the rows itself, forwards or, more laboriously, backwards. A menu of the diff's files needs the same rows, all of them at once. Extract fileStarts, which answers that for the whole diff, and have navigation pick its neighbour out of the answer. The two then agree on where a file begins by construction, and the walk backwards over a file goes away. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>