mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 15:46:26 -04:00
A view drew a selection because something told it to, from four places on three different schedules: a context being focused, a context losing focus, a context being activated over another one, and a list being re-rendered. Whether the flags ended up describing the state of the app depended on which of those had run last, and the last one to run was often none of them: a refresh only re-focuses the view that has the focus, so a list whose contents changed underneath an unfocused panel kept whichever highlight it happened to have. Derive both flags instead, in one place, from the two things they mean: a view shows a selection while its context is on the stack and has something to select, and the context the user is in shows an active one where the ones behind it show inactive ones. Nothing else needs to say anything about highlighting, so nothing else can leave a view saying something untrue about where the focus is. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| accordion.go | ||
| background_refresh_keeps_scroll_position.go | ||
| branches_not_first_tab.go | ||
| commits_not_first_tab.go | ||
| disable_switch_tab_with_panel_jump_keys.go | ||
| drag_beyond_viewport.go | ||
| empty_menu.go | ||
| filtering_scrolls_selection_into_view.go | ||
| find_base_commit_for_fixup_scrolls_into_view.go | ||
| hide_side_panel.go | ||
| keybinding_suggestions_dont_crash_on_disabled_bindings.go | ||
| keybinding_suggestions_when_switching_repos.go | ||
| menu_scroll_position_is_reset.go | ||
| mode_specific_keybinding_suggestions.go | ||
| move_commit_scrolls_selection_into_view.go | ||
| open_link_failure.go | ||
| page_up_and_down.go | ||
| promote_tab_to_side_panel.go | ||
| range_select.go | ||
| range_select_with_autoscroll.go | ||
| reload_side_panels.go | ||
| reorder_side_panels.go | ||
| sub_commits_scroll_position_is_reset.go | ||
| suggestions_selection_follows_the_focus.go | ||
| switch_repo_moves_the_selection.go | ||
| switch_tab_from_menu.go | ||
| switch_tab_with_panel_jump_keys.go | ||
| toggle_whitespace_keeps_unfocused_selection_dimmed.go | ||
| unfocused_list_hides_selection_when_emptied.go | ||
| unfocused_list_shows_selection_when_filled.go | ||