diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2024-01-14 09:50:52 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2024-01-19 10:47:21 +1100 |
commit | 54bd94ad24ca24ca12fab59e9dbf0d79fe7681da (patch) | |
tree | 0dd7c0819d29aa38828486f3e5c6b0a017790c5b /pkg/gui/controllers/basic_commits_controller.go | |
parent | 8840c1a2b75749724b2dc6e329c2e150db93bc5a (diff) |
Add SetSelection function for list contexts and use it in most places
The only time we should call SetSelectedLineIdx is when we are happy for a
select range to be retained which means things like moving the selected line
index to top top/bottom or up/down a page as the user navigates.
But in every other case we should now call SetSelection because that will
set the selected index and cancel the range which is almost always what we
want.
Diffstat (limited to 'pkg/gui/controllers/basic_commits_controller.go')
0 files changed, 0 insertions, 0 deletions