jesseduffield.lazygit/pkg/integration/tests
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
..
bisect move popup assertions into a struct 2022-12-28 11:00:22 +11:00
branch Explicitly pass --no-autosquash when rebasing 2023-02-09 18:21:11 +01:00
cherry_pick move popup assertions into a struct 2022-12-28 11:00:22 +11:00
commit Make SelectedLine/SelectedLineIdx work in staging/stagingSecondary views 2023-02-15 21:22:11 +01:00
config remove dependency on model 2022-12-27 22:52:20 +11:00
custom_commands move popup assertions into a struct 2022-12-28 11:00:22 +11:00
diff Add integration test for ignoring whitespace in diff 2023-02-07 13:33:10 +01:00
file more git ignore stuff in integration test 2022-12-30 22:42:32 +11:00
filter_by_path appease linter 2022-12-30 22:47:56 +11:00
interactive_rebase move popup assertions into a struct 2022-12-28 11:00:22 +11:00
misc move popup assertions into a struct 2022-12-28 11:00:22 +11:00
patch_building Skipping copy_patch_to_clipboard test case 2023-01-29 10:20:56 +05:30
shared add integration tests for cherry picking 2022-09-16 22:15:16 -07:00
stash move popup assertions into a struct 2022-12-28 11:00:22 +11:00
submodule migrate submodule reset test 2023-02-12 18:12:01 +11:00
sync migrate test for rename branch and pull 2022-12-30 22:42:32 +11:00
tests.go Merge pull request #2429 from stefanhaller/do-not-autosquash-in-regular-rebase 2023-02-15 20:21:08 +11:00