mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-16 02:26:24 -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> |
||
|---|---|---|
| .. | ||
| common.go | ||
| common_commands.go | ||
| context.go | ||
| diff_line_info.go | ||
| keybindings.go | ||
| modes.go | ||
| ref_range.go | ||
| refresh.go | ||
| rendering.go | ||
| search_state.go | ||
| suggestion.go | ||
| version_number.go | ||
| version_number_test.go | ||
| views.go | ||