mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 15:46:26 -04:00
The post-stage reveal picked its primary candidate with AdjacentChangeBlock, which skips the rest of the acted-on line's block. That's right in hunk mode, where the whole block is staged, but wrong in line mode: staging the first line of a multi-line block left the rest of the block in place, yet the selection jumped past it to the next block instead of landing on the next (now first) line of the same block. Use AdjacentChangeLine — the first change line strictly after/before the selection — for the next/previous candidates. It unifies both modes: after a whole block (whose last line is followed by context) the next change line is the next block's, so hunk mode is unchanged; after a single line the next change line is the next line of the same block. place stays mode-aware (hunk-expand vs single line), so nothing else changes. 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 | ||