mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-08-24 10:13:41 -05:00
A render that takes more than 200ms to produce its first line takes the view over to say "loading...", which clears the buffer it was showing. That is worth doing when the content coming is different — the view is showing something the user has moved on from, and saying so beats leaving it there silently. It is pure flicker when the content isn't changing: the view is already showing exactly what the render is about to put back, and a slow re-render of unchanged content is common (a background refresh over a repo with submodules that have uncommitted changes, say). So track whether the render in flight has content the view isn't already showing, and only let the indicator take over when it does. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>