mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 23:56:24 -04:00
When the diff re-renders for a new pager (or a changed context size), PreserveDiffPositionOnRerender restored the cursor by patch identity but left the selection's other end — the range anchor — pinned to its old view line. A pager that restructures the diff (delta side-by-side is the clearest case) then left the selection spanning the wrong range of patch lines. Remember the far end by patch identity too and put it back the same way, so the selection covers the same lines however the new pager lays them out. One mechanism now restores both ends, covering hunk and range selections alike; a single-line selection still needs only the cursor. 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 | ||