jesseduffield.lazygit/pkg/gui/context
Stefan Haller 80a614d330 Fix collapsing the range selection after deleting branches
We had code already that was supposed to do this, but it didn't work. It should
have used SetSelection() instead of SetSelectedLineIdx(); the latter doesn't
actually cancel a range selection.

Introduce a new function specifically for collapsing the range after deleting
multiple items, so that clients don't need two calls (we'll add a bunch more in
this branch).
2025-07-04 17:18:10 +02:00
..
traits Fix collapsing the range selection after deleting branches 2025-07-04 17:18:10 +02:00
base_context.go Allow clicking in focused main view to go to staging 2025-04-21 18:03:24 +02:00
branches_context.go Fix truncating branches to the right edge of the view when scrolled to the left 2025-04-20 15:50:38 +02:00
commit_files_context.go Pass common.Common to file trees instead of just the Log 2025-05-24 17:56:43 +02:00
commit_message_context.go Show "hooks disabled" in title bar of commit message editor 2025-04-10 08:57:32 +02:00
confirmation_context.go split context common from helper common 2023-04-30 13:19:53 +10:00
context.go Add class MainContext 2025-04-21 18:03:18 +02:00
context_common.go split context common from helper common 2023-04-30 13:19:53 +10:00
dynamic_title_builder.go show namesake for child views 2022-03-26 18:00:46 +11:00
filtered_list.go Instantiate other mutexes by value 2025-06-19 18:39:46 +02:00
filtered_list_view_model.go Get rid of the retain-sort-order-when-filtering logic again 2024-03-17 12:23:07 +01:00
history_trait.go Add search history 2023-09-20 08:35:41 +03:00
list_context_trait.go Make '>' first jump to the beginning of the branch, and only then to the first commit 2025-05-11 13:55:43 +02:00
list_renderer.go Remove utils.Clamp, use lo.Clamp instead 2025-04-21 18:03:18 +02:00
list_renderer_test.go Enable intrange linter, and fix warnings 2025-06-30 18:30:11 +02:00
list_view_model.go Reduce the chance of race condition with list cursor 2024-01-28 09:20:52 +11:00
local_commits_context.go Make '>' first jump to the beginning of the branch, and only then to the first commit 2025-05-11 13:55:43 +02:00
main_context.go Make the main view searchable 2025-04-21 18:03:24 +02:00
menu_context.go Enable revive linter, and fix a bunch of warnings 2025-06-30 19:13:20 +02:00
merge_conflicts_context.go Instantiate other mutexes by value 2025-06-19 18:39:46 +02:00
parent_context_mgr.go Remove bool return value of GetParentContext() 2024-08-17 11:14:51 +02:00
patch_explorer_context.go Instantiate other mutexes by value 2025-06-19 18:39:46 +02:00
reflog_commits_context.go Adjust line number for working copy when editing a line 2025-01-07 17:46:51 +01:00
remote_branches_context.go Adjust line number for working copy when editing a line 2025-01-07 17:46:51 +01:00
remotes_context.go Adjust line number for working copy when editing a line 2025-01-07 17:46:51 +01:00
search_trait.go Change direct access to Common.UserConfig to a getter 2024-08-18 10:24:52 +02:00
setup.go Make the main view searchable 2025-04-21 18:03:24 +02:00
simple_context.go Fix view selection running out of sync with list selection when view isn't focused 2025-04-20 16:06:15 +02:00
stash_context.go Adjust line number for working copy when editing a line 2025-01-07 17:46:51 +01:00
sub_commits_context.go Make '>' first jump to the beginning of the branch, and only then to the first commit 2025-05-11 13:55:43 +02:00
submodules_context.go Get rid of the retain-sort-order-when-filtering logic again 2024-03-17 12:23:07 +01:00
suggestions_context.go Enable revive linter, and fix a bunch of warnings 2025-06-30 19:13:20 +02:00
tags_context.go Adjust line number for working copy when editing a line 2025-01-07 17:46:51 +01:00
view_trait.go Bump gocui and adapt lazygit code 2024-12-01 10:40:08 +01:00
working_tree_context.go Add user config gui.addRootItemInFileTree 2025-05-24 18:17:25 +02:00
worktrees_context.go Get rid of the retain-sort-order-when-filtering logic again 2024-03-17 12:23:07 +01:00