mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-11 08:06:25 -04:00
Staging a hunk from the focused main view advances the selection to the next hunk, because staging removes the acted-on lines from the diff so the preserved change-line ordinal lands on the next change. Toggling a hunk into a custom patch left the selection sitting on the just-toggled hunk instead — the toggle doesn't change the diff (only the inclusion set), so the same ordinal lands back where it was, and you had to navigate by hand to build a patch hunk by hunk. Give the toggle the same feel by advancing the reveal ordinal past the toggled change lines (RevealSelectionAfterStaging gains an advanceBy arg, fed the toggled change-line count). Staging and removal still pass 0 (their lines are consumed). 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 | ||