mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-13 00:56:25 -04:00
Staging or unstaging can move the acted-on side to the other half of the focused main view — unstaging the first hunk of an only-staged file splits it, pushing the staged remainder to the secondary pane. The reveal that re-selects the nearest surviving change after the op then has to ride the re-render of that other pane, not the one the user acted in. Split RevealSelectionAfterStaging's single view into a source (where the candidate lines are read) and a target (where they're found again and re-selected), and get-or-create the target's buffer manager so the restore can be installed on a pane that hasn't rendered yet. Behavior-preserving: the sole caller passes the same view for both, as before. 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 | ||