mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 15:46:26 -04:00
Track how many leading viewLines entries the most recent refresh built from the current buffer (freshViewLineCount) and bound the view-line→ buffer-line mapping on it. The entries past that count are the stale tail refreshViewLinesIfNeeded leaves in place for flicker-avoidance; they belong to a previous, longer render and must not be mapped. The old in-range guard was insufficient: with wrapping a stale entry's buffer index can still be in range of the shrunk buffer. Within the fresh range every entry was just built from the current buffer, so its index is guaranteed in range and the guard is no longer needed. This is the §8 correctness fix the identity-based escape restore depends on, since that read scans the view buffer while it is still loading. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| app | ||
| cheatsheet | ||
| commands | ||
| common | ||
| config | ||
| constants | ||
| env | ||
| fakes | ||
| gocui | ||
| gui | ||
| i18n | ||
| integration | ||
| jsonschema | ||
| logs | ||
| snake | ||
| tasks | ||
| theme | ||
| updates | ||
| utils | ||