mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-10-06 05:57:38 -04:00
NavigateToLine looks for its target among the lines the view has rendered. When a list is scrolled, the view holds only the part of it that is on screen, so the target may not be among them. For that case the helper jumps to the top of the list and walks down instead. That walk presses a key before it looks, so it never sees the item it starts on, which after jumping is the first item of the list. A target sitting there is reported as missing. The shorter the terminal, the more of a list is scrolled out of view and the more often that walk is needed, so this surfaced once the demos began running in a 35 line terminal. Check the line the walk starts on before moving off it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>