Files
lazygit/pkg/gui
Stefan HallerandClaude Opus 5 79e1ce256f Keep both ends of a selected range across a re-render
A range or hunk selection covers a stretch of the diff, and restoring only
the cursor left the other end pointing at whatever line the new rendering
happened to put there — with more context lines above, a selected hunk
would grow a tail of context it never covered.

So the other end is remembered by identity too, and put back before the
cursor. If it is a line the re-render dropped, the selection is left as the
single line we landed on: there is no telling which line inherits a
selection's edge, and a wrong guess acts on lines the user never chose.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-10-05 10:30:55 +02:00
..
2026-09-27 08:16:06 +02:00
2026-07-31 08:42:51 +02:00
2025-07-08 15:14:45 +02:00
2025-05-06 09:43:26 +02:00
2026-08-31 20:41:22 +02:00
2026-08-31 20:41:22 +02:00