jesseduffield.lazygit/pkg/integration/components
stk ff2a799200 Make SelectedLine/SelectedLineIdx work in staging/stagingSecondary views
While we try to keep the view's cursor position in sync with the context state's
selectedLineIdx (at least when pressing up or down), there are enough situations
where the two run out of sync; for example when initially opening the view, or
after staging a hunk, or when scrolling the view using the wheel. While it would
be possible to fix these situations to keep them always in sync, it doesn't seem
worth it, because the view's cursor position isn't really used for anything
else. So we rather special-case the SelectedLine/SelectedLineIdx functions of
ViewDriver to query the context state's selectedLineIdx directly if it is a
patch explorer context.
2023-02-15 21:22:11 +01:00
..
actions.go move popup assertions into a struct 2022-12-28 11:00:22 +11:00
alert_driver.go rename from asserter to driver 2022-12-28 11:27:48 +11:00
assertion_helper.go better namespacing for assertions 2022-12-27 21:26:18 +11:00
commit_message_panel_driver.go rename from asserter to driver 2022-12-28 11:27:48 +11:00
confirmation_driver.go rename from asserter to driver 2022-12-28 11:27:48 +11:00
file_system.go rename function 2022-12-28 14:19:56 +11:00
git.go remove dependency on model 2022-12-27 22:52:20 +11:00
matcher.go migrate submodule enter test 2023-02-12 18:12:01 +11:00
menu_driver.go rename from asserter to driver 2022-12-28 11:27:48 +11:00
paths.go even better structure 2022-08-14 11:24:07 +10:00
popup.go rename from asserter to driver 2022-12-28 11:27:48 +11:00
prompt_driver.go migrate submodule add test 2023-02-12 10:47:41 +11:00
runner.go fix test 2023-02-12 18:12:01 +11:00
shell.go migrate test for rename branch and pull 2022-12-30 22:42:32 +11:00
test.go remove dependency on model 2022-12-27 22:52:20 +11:00
test_driver.go better test 2023-01-26 13:25:56 +11:00
test_test.go Make SelectedLine/SelectedLineIdx work in staging/stagingSecondary views 2023-02-15 21:22:11 +01:00
viewDriver.go Make SelectedLine/SelectedLineIdx work in staging/stagingSecondary views 2023-02-15 21:22:11 +01:00
views.go better test 2023-01-26 13:25:56 +11:00