jesseduffield.lazygit/pkg
Stefan Haller a415d1b529 Fix the main view display after reverting a commit
We move the selection down by the number of commits that were reverted (to keep
the same commits selected). However, this only happens after refreshing, which
has rendered the main view with the wrong commit, so we need to render it again
after moving the selection.

There are many other callers of MoveSelection in LocalCommitsController, but all
of them happen before the refresh. Revert is special because it needs to move
the selection after refreshing, e.g. when reverting the only commit of a branch.
2025-12-23 14:55:58 +01:00
..
app Show a better error message if the temp directory is not writeable 2025-10-16 10:04:47 +02:00
cheatsheet refactor: use strings.Builder and strings.Repeat to simplify code 2025-12-03 18:34:21 +01:00
commands feat: add Codeberg as a supported git hosting service 2025-12-21 14:10:59 +01:00
common Move NewDummyCommon to pkg/common 2025-05-06 09:43:26 +02:00
config feat: support custom keybinds in custom command prompt menus 2025-12-22 13:43:52 +01:00
constants Make the links in the status panel point to the current version rather than master 2024-03-22 08:13:59 +01:00
env Support bare worktrees where worktree does not have its own .git file 2023-08-07 22:40:53 +10:00
fakes Modernize all codes 2025-11-15 10:46:23 +01:00
gui Fix the main view display after reverting a commit 2025-12-23 14:55:58 +01:00
i18n Add a missing quote 2025-12-11 21:10:11 +01:00
integration Fix the main view display after reverting a commit 2025-12-23 14:55:58 +01:00
jsonschema Modernize all codes 2025-11-15 10:46:23 +01:00
logs Clean up build tags 2025-08-14 20:40:44 +02:00
snake Enable intrange linter, and fix warnings 2025-06-30 18:30:11 +02:00
tasks Modernize all codes 2025-11-15 10:46:23 +01:00
theme Highlight inactive selection in bold 2024-06-23 14:43:13 +02:00
updates Change direct access to Common.UserConfig to a getter 2024-08-18 10:24:52 +02:00
utils Modernize all codes 2025-11-15 10:46:23 +01:00